summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-10-06 14:53:16 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-07 16:43:50 +0100
commitb8eef88536b944ea35664b9a6a9496fb0a3f7988 (patch)
treed2b9a4df2e912cecd95bc7ea52df29cd7ba77ee6
parent9211fb2a6d6c2d72ec7c2664737aee3a6b6149cf (diff)
downloadopenembedded-core-contrib-b8eef88536b944ea35664b9a6a9496fb0a3f7988.tar.gz
openembedded-core-contrib-b8eef88536b944ea35664b9a6a9496fb0a3f7988.tar.bz2
openembedded-core-contrib-b8eef88536b944ea35664b9a6a9496fb0a3f7988.zip
wic: selftest: add test for systemd-bootdisk
Test creation of systemd-bootdisk 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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index e550785fcf..bf1a860845 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -284,3 +284,10 @@ class Wic(oeSelfTest):
self.assertEqual(0, status)
self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
self.assertEqual(1, len(glob(self.resultdir + "%s-*direct.bmap" % image)))
+
+ def test_systemd_bootdisk(self):
+ """Test creation of systemd-bootdisk image"""
+ image = "systemd-bootdisk"
+ self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
+ % image).status)
+ self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))