diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-18 15:34:19 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-19 08:39:26 +0100 |
commit | 1f21c46e517685ff1363d3b6f4fd840300b1930b (patch) | |
tree | 9796fac6e8bc45cc34161b30c0a9060de9932616 /meta | |
parent | 7c749d4cfe1642d70a6b3643422ef69dec1775fe (diff) | |
download | openembedded-core-1f21c46e517685ff1363d3b6f4fd840300b1930b.tar.gz openembedded-core-1f21c46e517685ff1363d3b6f4fd840300b1930b.tar.bz2 openembedded-core-1f21c46e517685ff1363d3b6f4fd840300b1930b.zip |
oe-selftest: wic: add test_bmap test case
Tested generation of .bmap file using wic --bmap command
line option.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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): 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))) |