mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 14:02:21 +02:00
selftest: fixed 3 wic test cases
Fixed test_systemd_bootdisk, test_wic_image_type and test_qemu test cases by building core-image-minimal with correct configuration. (From OE-Core rev: 897fe85d34302953c98d07ade4fa2dd749ae2d22) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
78d4d09cf2
commit
253b8d7d58
@@ -181,6 +181,10 @@ class Wic(oeSelfTest):
|
||||
@testcase(1560)
|
||||
def test_systemd_bootdisk(self):
|
||||
"""Test creation of systemd-bootdisk image"""
|
||||
config = 'IMAGE_FSTYPES += " hddimg "\nMACHINE_FEATURES_append = " efi"\n'
|
||||
self.append_config(config)
|
||||
bitbake('core-image-minimal')
|
||||
self.remove_config(config)
|
||||
cmd = "wic create systemd-bootdisk -e core-image-minimal"
|
||||
self.assertEqual(0, runCmd(cmd).status)
|
||||
self.assertEqual(1, len(glob(self.resultdir + "systemd-bootdisk-*direct")))
|
||||
@@ -379,7 +383,11 @@ class Wic(oeSelfTest):
|
||||
@testcase(1351)
|
||||
def test_wic_image_type(self):
|
||||
"""Test building wic images by bitbake"""
|
||||
config = 'IMAGE_FSTYPES += " hddimg wic"\nWKS_FILE = "wic-image-minimal"\n'\
|
||||
'MACHINE_FEATURES_append = " efi"\n'
|
||||
self.append_config(config)
|
||||
self.assertEqual(0, bitbake('wic-image-minimal').status)
|
||||
self.remove_config(config)
|
||||
|
||||
deploy_dir = get_bb_var('DEPLOY_DIR_IMAGE')
|
||||
machine = get_bb_var('MACHINE')
|
||||
@@ -394,7 +402,11 @@ class Wic(oeSelfTest):
|
||||
@testcase(1422)
|
||||
def test_qemu(self):
|
||||
"""Test wic-image-minimal under qemu"""
|
||||
config = 'IMAGE_FSTYPES += " hddimg wic"\nWKS_FILE = "wic-image-minimal"\n'\
|
||||
'MACHINE_FEATURES_append = " efi"\n'
|
||||
self.append_config(config)
|
||||
self.assertEqual(0, bitbake('wic-image-minimal').status)
|
||||
self.remove_config(config)
|
||||
|
||||
with runqemu('wic-image-minimal', ssh=False) as qemu:
|
||||
cmd = "mount |grep '^/dev/' | cut -f1,3 -d ' '"
|
||||
|
||||
Reference in New Issue
Block a user