From 3bd1dd16f18d6dedfa79941015da32fcf26f4a39 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Wed, 24 Oct 2012 16:54:59 -0700 Subject: 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 --- nova/tests/test_virt_drivers.py | 1 + 1 file changed, 1 insertion(+) 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", -- cgit