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>
This commit is contained in:
parent
471a816224
commit
978d450a52
|
@ -276,3 +276,11 @@ class Wic(oeSelfTest):
|
|||
status, output = qemu.run_serial(command)
|
||||
self.assertEqual(1, status, 'Failed to run command "%s": %s' % (command, output))
|
||||
self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt')
|
||||
|
||||
def test_bmap(self):
|
||||
"""Test generation of .bmap file"""
|
||||
image = "directdisk"
|
||||
status = runCmd("wic create %s -e core-image-minimal --bmap" % image).status
|
||||
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)))
|
||||
|
|
Loading…
Reference in New Issue