summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-09-20 17:53:24 +0000
committerGerrit Code Review <review@openstack.org>2012-09-20 17:53:24 +0000
commitf4a131fb07a48d67c14e60765bb4a15775aaaeb3 (patch)
treec30fbfea6c2ea083aea4c397d7e907aaea97f1e9 /nova/tests
parentfbdaa960d9abfada9cabd4764b11eaaed15b19df (diff)
parent51441e369bb05e9cb9149ac9a7290fe541e3ed1a (diff)
Merge "Inherit the base images qcow2 properties"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_libvirt.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index bca9544fc..10db13e17 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -3402,6 +3402,9 @@ class LibvirtUtilsTestCase(test.TestCase):
def test_create_cow_image(self):
self.mox.StubOutWithMock(utils, 'execute')
+ rval = ('', '')
+ utils.execute('env', 'LC_ALL=C', 'LANG=C',
+ 'qemu-img', 'info', '/some/path').AndReturn(rval)
utils.execute('qemu-img', 'create', '-f', 'qcow2',
'-o', 'backing_file=/some/path',
'/the/new/cow')