diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-05-28 21:10:57 -0400 |
|---|---|---|
| committer | Dan Prince <dan.prince@rackspace.com> | 2011-05-28 21:10:57 -0400 |
| commit | 5976b50299b31292d578dcdd8576607e175fca44 (patch) | |
| tree | 9ae47d19c1b9efd3a880bde2932458f70759824d /nova | |
| parent | 4a01acc3e8d1ad0d1424472703a88a96002ba56f (diff) | |
Cleanup instances_path in test_libvirt test_spawn_with_network_info test.
Diffstat (limited to 'nova')
| -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): |
