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:58 +0100
commitbed4a13440d80244e56acd3be8a2a737f6db756d (patch)
tree84c3569de7e44e86ac36d2be594fc25d17aab05c
parent33bed1e25339680bf0a0dd456f80762d14e71045 (diff)
downloadpoky-bed4a13440d80244e56acd3be8a2a737f6db756d.tar.gz
wic: selftest: add test for systemd-bootdisk
Test creation of systemd-bootdisk image. (From OE-Core rev: b8eef88536b944ea35664b9a6a9496fb0a3f7988) 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):
284 self.assertEqual(0, status) 284 self.assertEqual(0, status)
285 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) 285 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
286 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct.bmap" % image))) 286 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct.bmap" % image)))
287
288 def test_systemd_bootdisk(self):
289 """Test creation of systemd-bootdisk image"""
290 image = "systemd-bootdisk"
291 self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
292 % image).status)
293 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))