aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-14 11:02:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-15 16:34:12 +0100
commit2a80fa234d31992691a157425e8990db30158fd1 (patch)
tree9564c43af96b4af7d9fe8505e85be2f2ec508ea4
parente07ec908ce7f26143a7bdf0a07a1230c0fd6ac87 (diff)
downloadopenembedded-core-contrib-2a80fa234d31992691a157425e8990db30158fd1.tar.gz
openembedded-core-contrib-2a80fa234d31992691a157425e8990db30158fd1.tar.bz2
openembedded-core-contrib-2a80fa234d31992691a157425e8990db30158fd1.zip
oeqa/selftest/wic: Ensure initramfs exists for test_iso_image
AssertionError: Command 'wic create mkhybridiso --image-name core-image-minimal -o /var/tmp/wic.oe-selftest/' returned non-zero exit status 1: ERROR: _exec_cmd: gzip -f -9 -c /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio > /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio.gz returned '1' instead of 0 output: gzip: /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio: No such file or directory This is because in a clean build directory, the initramfs may not be rebuilt. Add a call to ensure it is built to avoid the error. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/cases/wic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py
index 5302e47da1a..2771af63674 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -191,7 +191,7 @@ class Wic(OESelftestTestCase):
'MACHINE_FEATURES_append = " efi"\n'\
'DEPENDS_pn-core-image-minimal += "syslinux"\n'
self.append_config(config)
- bitbake('core-image-minimal')
+ bitbake('core-image-minimal core-image-minimal-initramfs')
self.remove_config(config)
cmd = "wic create mkhybridiso --image-name core-image-minimal -o %s" % self.resultdir
self.assertEqual(0, runCmd(cmd).status)