summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@rndity.com>2017-03-21 12:35:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 11:35:22 +0000
commit17fe3eb453a4fda54eb320e3c69a3dbf3f306e87 (patch)
treeb614d9b29bf23b808b8543cffc0e9bf8c400eae7 /meta/lib
parent00ed0d4aeceec570d33f2f1049ee8c164b113eff (diff)
downloadpoky-17fe3eb453a4fda54eb320e3c69a3dbf3f306e87.tar.gz
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>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/wic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index 224610c9d7..776e44aac4 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -228,7 +228,8 @@ class Wic(oeSelfTest):
228 def test_sdimage_bootpart(self): 228 def test_sdimage_bootpart(self):
229 """Test creation of sdimage-bootpart image""" 229 """Test creation of sdimage-bootpart image"""
230 cmd = "wic create sdimage-bootpart -e core-image-minimal -o %s" % self.resultdir 230 cmd = "wic create sdimage-bootpart -e core-image-minimal -o %s" % self.resultdir
231 self.write_config('IMAGE_BOOT_FILES = "bzImage"\n') 231 kimgtype = get_bb_var('KERNEL_IMAGETYPE', 'core-image-minimal')
232 self.write_config('IMAGE_BOOT_FILES = "%s"\n' % kimgtype)
232 self.assertEqual(0, runCmd(cmd).status) 233 self.assertEqual(0, runCmd(cmd).status)
233 self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct"))) 234 self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct")))
234 235