From 5526fb6db239677fead7bfbff8b2a6672bba6367 Mon Sep 17 00:00:00 2001 From: Ghe Rivero Date: Mon, 9 Jul 2012 20:02:44 +0200 Subject: Fix snapshots tests failing bug 1022670 When running snapshot test, FLAGS.instances_path is defined as '', with snapshot_directory='/snapshots' which will fail to to permissions errors. Modified class LibvirtConnTestCase to use libvirt_snapshots_directory='' Change-Id: I930e4f30ddffcf66c58312e92f0ae368e770e438 --- nova/tests/test_libvirt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index eed43b8d1..396dd1af3 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -420,6 +420,7 @@ class LibvirtConnTestCase(test.TestCase): self.project_id = 'fake' self.context = context.get_admin_context() self.flags(instances_path='') + self.flags(libvirt_snapshots_directory='') self.call_libvirt_dependant_setup = False libvirt_driver.libvirt_utils = fake_libvirt_utils -- cgit