diff options
author | Tom Rini <trini@konsulko.com> | 2017-07-28 20:14:32 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-30 08:45:13 +0100 |
commit | 929ba563f1bc7195c4981b8e139c432b2cc388ea (patch) | |
tree | 39ba1647dabcfc4cb5748a9f44f5bed91c95a26d /meta/lib | |
parent | 7d02ea283b6587f3f79c5846b64b9ba1d6fe8026 (diff) | |
download | openembedded-core-929ba563f1bc7195c4981b8e139c432b2cc388ea.tar.gz openembedded-core-929ba563f1bc7195c4981b8e139c432b2cc388ea.tar.bz2 openembedded-core-929ba563f1bc7195c4981b8e139c432b2cc388ea.zip |
image: Convert vmdk/vdi/qcow2 to strict CONVERSION_CMD types
The vmdk/vdi/qcow2 IMAGE_FSTYPEs predate wic. As such, they provide
some similar underlying functionality in order to produce a "disk" image
that in turn can be converted into different formats that various
hypervisor types work with. They do not however provide the ability for
other disk image types to be converted into these same output types.
Furthermore, they are less flexible than what wic does provide. This
drops the old style vmdk/vdi/qcow2 types and re-introduces them under
the CONVERSION_CMD framework. The equivalent of vmdk is now wic.vmdk
and so forth for the other types.
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runqemu.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py index 4050a4123b..8805a3837e 100644 --- a/meta/lib/oeqa/selftest/cases/runqemu.py +++ b/meta/lib/oeqa/selftest/cases/runqemu.py @@ -19,7 +19,7 @@ class RunqemuTests(OESelftestTestCase): super(RunqemuTests, self).setUpLocal() self.recipe = 'core-image-minimal' self.machine = 'qemux86-64' - self.fstypes = "ext4 iso hddimg vmdk qcow2 vdi" + self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi" self.cmd_common = "runqemu nographic" # Avoid emit the same record multiple times. @@ -74,7 +74,7 @@ SYSLINUX_TIMEOUT = "10" @OETestID(2005) def test_boot_recipe_image_vmdk(self): """Test runqemu recipe-image vmdk""" - cmd = "%s %s vmdk" % (self.cmd_common, self.recipe) + cmd = "%s %s wic.vmdk" % (self.cmd_common, self.recipe) with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu: with open(qemu.qemurunnerlog) as f: self.assertTrue('format=vmdk' in f.read(), "Failed: %s" % cmd) @@ -82,7 +82,7 @@ SYSLINUX_TIMEOUT = "10" @OETestID(2006) def test_boot_recipe_image_vdi(self): """Test runqemu recipe-image vdi""" - cmd = "%s %s vdi" % (self.cmd_common, self.recipe) + cmd = "%s %s wic.vdi" % (self.cmd_common, self.recipe) with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu: with open(qemu.qemurunnerlog) as f: self.assertTrue('format=vdi' in f.read(), "Failed: %s" % cmd) @@ -113,7 +113,7 @@ SYSLINUX_TIMEOUT = "10" @OETestID(2009) def test_boot_machine_slirp_qcow2(self): """Test runqemu machine slirp qcow2""" - cmd = "%s slirp qcow2 %s" % (self.cmd_common, self.machine) + cmd = "%s slirp wic.qcow2 %s" % (self.cmd_common, self.machine) with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu: with open(qemu.qemurunnerlog) as f: self.assertTrue('format=qcow2' in f.read(), "Failed: %s" % cmd) |