Merge "Inherit the base images qcow2 properties"

This commit is contained in:
Jenkins
2012-09-20 17:53:24 +00:00
committed by Gerrit Code Review

View File

@@ -3402,6 +3402,9 @@ class LibvirtUtilsTestCase(test.TestCase):
def test_create_cow_image(self): def test_create_cow_image(self):
self.mox.StubOutWithMock(utils, 'execute') 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', utils.execute('qemu-img', 'create', '-f', 'qcow2',
'-o', 'backing_file=/some/path', '-o', 'backing_file=/some/path',
'/the/new/cow') '/the/new/cow')