From: Adrian Freihofer <[email protected]>
oe-selftest wic.Wic2.test_efi_plugin_unified_kernel_image_qemu failed
with:
AssertionError: Command
'bitbake core-image-minimal core-image-minimal-initramfs ovmf'
returned non-zero exit status 1:
bitbake reported:
FileNotFoundError: [Errno 2] No such file or directory:
'.../build-st-242167/tmp/deploy/images/qemux86-64/core-image-minimal-initramfs-qemux86-64.cpio.gz'
WARNING:
.../build-st-242167/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp/run.do_image_wic.986859:162
exit 1 from 'BUILDDIR="/home/adrian/projets/oss/poky/build-st-242167"
PSEUDO_UNLOAD=1
wic create "$wks" --vars
".../build-st-242167/tmp/sysroots/qemux86-64/imgdata/"
-e "core-image-minimal" -o "$build_wic/" -w "$tmp_wic"'
Creating a configuration as the test does and calling
bitbake -g core-image-minimal
does not show a dependency from core-image-minimal:do_image_wic on
core-image-minimal-initramfs:do_image_complete.
Adding the dependency directly to the test case resolves the issue.
Since the dependency is basically created by the wks file solving this
in a more generic way, e.g. by handling the dependency in
image_types_wic.bbclass does not look like simple.
Signed-off-by: Adrian Freihofer <[email protected]>
---
meta/lib/oeqa/selftest/cases/wic.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/selftest/cases/wic.py
b/meta/lib/oeqa/selftest/cases/wic.py
index b616759209a..b1315c5b432 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -1294,7 +1294,11 @@ class Wic2(WicTestCase):
'WKS_FILE = "test_efi_plugin.wks"\n'\
'MACHINE_FEATURES:append = " efi"\n'
self.append_config(config)
- bitbake('core-image-minimal core-image-minimal-initramfs ovmf')
+ # Rather than creating a special image which adds the dependency which
is needed by the wks file
+ # core-image-minimal:do_image_wic[depends] +=
"core-image-minimal-initramfs:do_image_complete"
+ # core-image-minimal-initramf is built before it is used by
core-image-minimal.
+ bitbake('core-image-minimal-initramfs')
+ bitbake('core-image-minimal ovmf')
self.remove_config(config)
with runqemu('core-image-minimal', ssh=False,
--
2.45.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201505):
https://lists.openembedded.org/g/openembedded-core/message/201505
Mute This Topic: https://lists.openembedded.org/mt/107033886/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-