summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-03-26 20:42:30 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-31 12:12:16 +0100
commit4da2526800de1d40b51db96b0d5ab44dbaff68ff (patch)
tree07db003e8b557f5b77e64bce81b81abe144bdef7 /meta/lib
parent1e45a4f72b16c7ab64f46907d2d2ee9cd749dc23 (diff)
downloadopenembedded-core-4da2526800de1d40b51db96b0d5ab44dbaff68ff.tar.gz
openembedded-core-4da2526800de1d40b51db96b0d5ab44dbaff68ff.tar.bz2
openembedded-core-4da2526800de1d40b51db96b0d5ab44dbaff68ff.zip
oe-selftest: add test_image_bootpart_globbed test for wic
Test image-bootpart wic plugin with globbed value of IMAGE_BOOT_FILES variable to increase test coverage. [YOCTO #10618] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/wic.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index f0d9dd90e5..2401aaa156 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -748,3 +748,13 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
wksname = os.path.splitext(os.path.basename(wks.name))[0]
out = glob(self.resultdir + "%s-*direct" % wksname)
self.assertEqual(1, len(out))
+
+ def test_image_bootpart_globbed(self):
+ """Test globbed sources with image-bootpart plugin"""
+ img = "core-image-minimal"
+ cmd = "wic create sdimage-bootpart -e %s -o %s" % (img, self.resultdir)
+ config = 'IMAGE_BOOT_FILES = "%s*"' % get_bb_var('KERNEL_IMAGETYPE', img)
+ self.append_config(config)
+ self.assertEqual(0, runCmd(cmd).status)
+ self.remove_config(config)
+ self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct")))