summaryrefslogtreecommitdiffstats
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-16 13:21:35 +0100
commiteacc12c2ec6d778c70f91f8c754f64c6c097f35a (patch)
treefffafb135f55cf92e1476dfbcd38a8d6fed2d073
parent5e8367e17f8ab1023b4a536348282fcea4df927d (diff)
downloadpoky-eacc12c2ec6d778c70f91f8c754f64c6c097f35a.tar.gz
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. (From OE-Core rev: 2a80fa234d31992691a157425e8990db30158fd1) 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 5302e47da1..2771af6367 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -191,7 +191,7 @@ class Wic(OESelftestTestCase):
191 'MACHINE_FEATURES_append = " efi"\n'\ 191 'MACHINE_FEATURES_append = " efi"\n'\
192 'DEPENDS_pn-core-image-minimal += "syslinux"\n' 192 'DEPENDS_pn-core-image-minimal += "syslinux"\n'
193 self.append_config(config) 193 self.append_config(config)
194 bitbake('core-image-minimal') 194 bitbake('core-image-minimal core-image-minimal-initramfs')
195 self.remove_config(config) 195 self.remove_config(config)
196 cmd = "wic create mkhybridiso --image-name core-image-minimal -o %s" % self.resultdir 196 cmd = "wic create mkhybridiso --image-name core-image-minimal -o %s" % self.resultdir
197 self.assertEqual(0, runCmd(cmd).status) 197 self.assertEqual(0, runCmd(cmd).status)