diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-06-01 14:01:22 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-06-01 14:01:22 +0000 |
| commit | a1e7f0884126fbc52e5295688f44fe9ebbea5873 (patch) | |
| tree | 2d72f9a0bcba8d7d0247fcb8c28f8467be847aa6 | |
| parent | 81857037710d2bab23d151184912c194edf9018d (diff) | |
| parent | 5976b50299b31292d578dcdd8576607e175fca44 (diff) | |
| download | nova-a1e7f0884126fbc52e5295688f44fe9ebbea5873.tar.gz nova-a1e7f0884126fbc52e5295688f44fe9ebbea5873.tar.xz nova-a1e7f0884126fbc52e5295688f44fe9ebbea5873.zip | |
Cleanup instances_path in the test_libvirt test_spawn_with_network_info test. Fixes issue where the nova/tests/instance-00000001/ is left in the nova source tree when running run_test.sh -N.
| -rw-r--r-- | nova/tests/test_libvirt.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index 4efdd6ae9..1fac4e4e6 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -18,6 +18,7 @@ import eventlet import mox import os import re +import shutil import sys from xml.etree.ElementTree import fromstring as xml_to_tree @@ -645,6 +646,8 @@ class LibvirtConnTestCase(test.TestCase): except Exception, e: count = (0 <= str(e.message).find('Unexpected method call')) + shutil.rmtree(os.path.join(FLAGS.instances_path, instance.name)) + self.assertTrue(count) def test_get_host_ip_addr(self): |
