summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-18 15:34:19 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-19 09:05:19 +0100
commit978d450a527e1875bf7e1a0c5fdfa6ed5fa36998 (patch)
tree901b312a24a06e43baabb09ea47bd0df62c68aa1 /meta/lib/oeqa
parent471a816224842fc24901fa682939e4a8900591af (diff)
downloadpoky-978d450a527e1875bf7e1a0c5fdfa6ed5fa36998.tar.gz
oe-selftest: wic: add test_bmap test case
Tested generation of .bmap file using wic --bmap command line option. (From OE-Core rev: 1f21c46e517685ff1363d3b6f4fd840300b1930b) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-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 a569fbf747..895c6d6d01 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -276,3 +276,11 @@ class Wic(oeSelfTest):
276 status, output = qemu.run_serial(command) 276 status, output = qemu.run_serial(command)
277 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (command, output)) 277 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (command, output))
278 self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt') 278 self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt')
279
280 def test_bmap(self):
281 """Test generation of .bmap file"""
282 image = "directdisk"
283 status = runCmd("wic create %s -e core-image-minimal --bmap" % image).status
284 self.assertEqual(0, status)
285 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
286 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct.bmap" % image)))