mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
wic: selftest: do not assume bzImage kernel image
Instead of assuming that bzImage is available, query bitbake enviroment for KERNEL_IMAGETYPE. (From OE-Core rev: d3e1d25a06dd4cb3ec80ea63352de24e50552481) Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
00ed0d4aec
commit
17fe3eb453
@@ -228,7 +228,8 @@ class Wic(oeSelfTest):
|
|||||||
def test_sdimage_bootpart(self):
|
def test_sdimage_bootpart(self):
|
||||||
"""Test creation of sdimage-bootpart image"""
|
"""Test creation of sdimage-bootpart image"""
|
||||||
cmd = "wic create sdimage-bootpart -e core-image-minimal -o %s" % self.resultdir
|
cmd = "wic create sdimage-bootpart -e core-image-minimal -o %s" % self.resultdir
|
||||||
self.write_config('IMAGE_BOOT_FILES = "bzImage"\n')
|
kimgtype = get_bb_var('KERNEL_IMAGETYPE', 'core-image-minimal')
|
||||||
|
self.write_config('IMAGE_BOOT_FILES = "%s"\n' % kimgtype)
|
||||||
self.assertEqual(0, runCmd(cmd).status)
|
self.assertEqual(0, runCmd(cmd).status)
|
||||||
self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct")))
|
self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct")))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user