summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-10-06 14:53:17 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-07 16:43:50 +0100
commit8b18568591f66aa9770798bc61123898de92b8a9 (patch)
tree3dc47580beb9c4e4a3d6936d467847df77775568
parentb8eef88536b944ea35664b9a6a9496fb0a3f7988 (diff)
downloadopenembedded-core-contrib-8b18568591f66aa9770798bc61123898de92b8a9.tar.gz
openembedded-core-contrib-8b18568591f66aa9770798bc61123898de92b8a9.tar.bz2
openembedded-core-contrib-8b18568591f66aa9770798bc61123898de92b8a9.zip
wic: selftest: add test for sdimage-bootpart
Test creation of sdimage-bootpart image 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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index bf1a860845..faac11e216 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -291,3 +291,11 @@ class Wic(oeSelfTest):
self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
% image).status)
self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
+
+ def test_sdimage_bootpart(self):
+ """Test creation of sdimage-bootpart image"""
+ image = "sdimage-bootpart"
+ self.write_config('IMAGE_BOOT_FILES = "bzImage"\n')
+ self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
+ % image).status)
+ self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))