diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-10-24 16:54:59 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-10-24 16:54:59 -0700 |
| commit | 3bd1dd16f18d6dedfa79941015da32fcf26f4a39 (patch) | |
| tree | 64231f8fcfe7e9246dbda40920350578647f57d2 | |
| parent | 86b91474d16fb9842bb75dc7ebd1af364cc8a058 (diff) | |
| download | nova-3bd1dd16f18d6dedfa79941015da32fcf26f4a39.tar.gz nova-3bd1dd16f18d6dedfa79941015da32fcf26f4a39.tar.xz nova-3bd1dd16f18d6dedfa79941015da32fcf26f4a39.zip | |
Fixes fake for testing without qemu-img
The qemu-img commands were recently moved into libvirt/snapshots.py
so libvirt_utils.py is no longer replaced properly with a fake in
test_virt_drivers.py. This causes the test to fail if qemu-img is
not installed on the system.
This patch fixes the issue by faking out libvirt_utils in snapshots.py.
Change-Id: Idf0dc2c9bfec89e99df3021f2d316a9760d5af29
| -rw-r--r-- | nova/tests/test_virt_drivers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/tests/test_virt_drivers.py b/nova/tests/test_virt_drivers.py index d5a2203f3..ba5bfd03f 100644 --- a/nova/tests/test_virt_drivers.py +++ b/nova/tests/test_virt_drivers.py @@ -75,6 +75,7 @@ class _FakeDriverBackendTestCase(test.TestCase): nova.virt.libvirt.driver.imagebackend = fake_imagebackend nova.virt.libvirt.driver.libvirt = fakelibvirt nova.virt.libvirt.driver.libvirt_utils = fake_libvirt_utils + nova.virt.libvirt.snapshots.libvirt_utils = fake_libvirt_utils nova.virt.libvirt.firewall.libvirt = fakelibvirt self.flags(rescue_image_id="2", |
