diff options
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 8 |
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))) | ||