diff options
| author | Ghe Rivero <ghe@debian.org> | 2012-07-09 20:02:44 +0200 |
|---|---|---|
| committer | Ghe Rivero <ghe@debian.org> | 2012-07-10 08:53:59 +0200 |
| commit | 5526fb6db239677fead7bfbff8b2a6672bba6367 (patch) | |
| tree | 22bb88caa47e287ac0a3d50b4ef54af79b7ca3a0 | |
| parent | ec3bcae984468b162ad40c208a81bf2b77d8b942 (diff) | |
| download | nova-5526fb6db239677fead7bfbff8b2a6672bba6367.tar.gz nova-5526fb6db239677fead7bfbff8b2a6672bba6367.tar.xz nova-5526fb6db239677fead7bfbff8b2a6672bba6367.zip | |
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
| -rw-r--r-- | nova/tests/test_libvirt.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
