summaryrefslogtreecommitdiffstats
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-04-01 08:14:57 +0100
commita24ffc708857cca58ef3cd44afe8cdd5d58b18e6 (patch)
treed1e1912087cc895e0f2f5db4c1d4f5b1e8a7fccf
parentad1bce56c43cf4758b4974f95736cfef3840c246 (diff)
downloadpoky-a24ffc708857cca58ef3cd44afe8cdd5d58b18e6.tar.gz
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] (From OE-Core rev: 4da2526800de1d40b51db96b0d5ab44dbaff68ff) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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
748 wksname = os.path.splitext(os.path.basename(wks.name))[0] 748 wksname = os.path.splitext(os.path.basename(wks.name))[0]
749 out = glob(self.resultdir + "%s-*direct" % wksname) 749 out = glob(self.resultdir + "%s-*direct" % wksname)
750 self.assertEqual(1, len(out)) 750 self.assertEqual(1, len(out))
751
752 def test_image_bootpart_globbed(self):
753 """Test globbed sources with image-bootpart plugin"""
754 img = "core-image-minimal"
755 cmd = "wic create sdimage-bootpart -e %s -o %s" % (img, self.resultdir)
756 config = 'IMAGE_BOOT_FILES = "%s*"' % get_bb_var('KERNEL_IMAGETYPE', img)
757 self.append_config(config)
758 self.assertEqual(0, runCmd(cmd).status)
759 self.remove_config(config)
760 self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct")))