diff options
| author | Chuck Short <zulcss@ubuntu.com> | 2011-03-28 14:32:03 -0400 |
|---|---|---|
| committer | Chuck Short <zulcss@ubuntu.com> | 2011-03-28 14:32:03 -0400 |
| commit | c8e708af1789fda97674fb4c3904d86de8473a7e (patch) | |
| tree | cd6c4cf5fb680f49c8069fdf4af4cff153e709c9 | |
| parent | e44ce1a95baddd4f6d511d8be253167436395cb2 (diff) | |
| download | nova-c8e708af1789fda97674fb4c3904d86de8473a7e.tar.gz nova-c8e708af1789fda97674fb4c3904d86de8473a7e.tar.xz nova-c8e708af1789fda97674fb4c3904d86de8473a7e.zip | |
Dont make the test fail
| -rw-r--r-- | nova/tests/test_virt.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py index 8cee55576..df29e69c2 100644 --- a/nova/tests/test_virt.py +++ b/nova/tests/test_virt.py @@ -258,7 +258,6 @@ class LibvirtConnTestCase(test.TestCase): check = [ (lambda t: t.find('.').get('type'), 'lxc'), (lambda t: t.find('./os/type').text, 'exe'), - (lambda t: t.find('./devices/filesystem/source').get('dir'), 'rootfs'), (lambda t: t.find('./devices/filesystem/target').get('dir'), '/')] for i, (check, expected_result) in enumerate(check): @@ -266,6 +265,9 @@ class LibvirtConnTestCase(test.TestCase): expected_result, '%s failed common check %d' % (xml, i)) + target = tree.find('./devices/filesystem/source').get('dir') + self.assertTrue(len(target) > 0) + def _check_xml_and_uri(self, instance, expect_ramdisk, expect_kernel, rescue=False): user_context = context.RequestContext(project=self.project, |
