poky/meta/lib/oeqa
Hongxu Jia 2768d6f676 wic-image-minimal, oeqa/selftest/wic: run 'wic ls/cp/rm' in bitbake task
Due to commit [2255f28b57 wic: add WIC_SECTOR_SIZE variable][1] applied,
call `wic ls|cp|rm|write' in bitbake task will hung, but we have no scenario
case to cover it

After commit [scripts/wic: fix calling wic ls|cp|rm|write hung in bitbake task] applied,
this commit run `wic cp|ls|rm' in case wic.Wic2.test_wic_image_type and wic.Wic2.test_qemu,
at post function of with do_image_wic in image wic-image-minimal, and
check if file is there

$ echo 'SANITY_TESTED_DISTROS = ""' >> conf/local.conf
$ oe-selftest -r wic.Wic2.test_wic_image_type wic.Wic2.test_qemu
...
2025-06-23 15:46:22,157 - oe-selftest - INFO - Adding: "include selftest.inc" in /buildarea5/hjia/poky/build-st/conf/local.conf
2025-06-23 15:46:22,157 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2025-06-23 15:46:22,157 - oe-selftest - INFO - test_qemu (wic.Wic2)
The variable 'TEST_RUNQEMUPARAMS' is not defined
2025-06-23 15:56:46,319 - oe-selftest - INFO -  ... ok
2025-06-23 15:56:46,324 - oe-selftest - INFO - test_wic_image_type (wic.Wic2)
2025-06-23 15:57:17,780 - oe-selftest - INFO -  ... ok
2025-06-23 15:57:17,781 - oe-selftest - INFO - ----------------------------------------------------------------------
2025-06-23 15:57:17,781 - oe-selftest - INFO - Ran 2 tests in 655.792s
2025-06-23 15:57:17,781 - oe-selftest - INFO - OK
2025-06-23 15:57:25,743 - oe-selftest - INFO - RESULTS:
2025-06-23 15:57:25,743 - oe-selftest - INFO - RESULTS - wic.Wic2.test_qemu: PASSED (624.16s)
2025-06-23 15:57:25,744 - oe-selftest - INFO - RESULTS - wic.Wic2.test_wic_image_type: PASSED (31.46s)
2025-06-23 15:57:25,746 - oe-selftest - INFO - SUMMARY:
2025-06-23 15:57:25,746 - oe-selftest - INFO - oe-selftest () - Ran 2 tests in 655.793s
2025-06-23 15:57:25,746 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=2, skipped=0, failures=0, errors=0)

(From OE-Core rev: 18d774eafb7fba720882fcdb945d145b82fa1dd4)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-06-26 11:02:34 +01:00
..
buildperf buildperf/base.py: skip reduced_proc_pressure directory 2022-06-30 23:38:01 +01:00
controllers lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
core oeqa/core/case: add file exists assertion 2025-06-23 21:42:54 +01:00
files oeqa/maturin/guessing-game: Bump dependencies to avoid security warning 2025-06-04 08:08:34 +01:00
manual oeqa/manual: remove obsolete CROPS and Eclipse manually testing scripts 2024-05-28 09:38:24 +01:00
runtime oeqa: Update lzip version in buildzip testcase 2025-04-08 15:49:17 +01:00
sdk oeqa/sdk/autotools: verify that configure is using the correct host 2025-05-12 22:01:55 +01:00
sdkext oeqa/sdkext/context: align hasHostPackage with parent class 2025-05-12 22:01:55 +01:00
selftest wic-image-minimal, oeqa/selftest/wic: run 'wic ls/cp/rm' in bitbake task 2025-06-26 11:02:34 +01:00
utils oeqa/utils/command: fast-path get_bb_var() 2025-06-20 09:52:28 +01:00
oetest.py meta/lib/oeqa: python 3.12 regex 2024-02-13 13:51:41 +00:00
runexported.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
targetcontrol.py oeqa: support passing custom boot patterns to runqemu 2024-10-11 15:57:44 +01:00