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
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user