Skip to content

Commit c0788a7

Browse files
committed
ci: force regeneration of testdata.json for testimage
The test phase was failing with: ERROR: File .../core-image-minimal-*.rootfs.testdata.json not found This happens because testdata.json is generated during image build, but the test phase modifies IMAGE_INSTALL after the build phase. Solution: Force regeneration of testdata_json task before running testimage. This ensures the JSON reflects the actual packages in the test image.
1 parent 3b1cc66 commit c0788a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-test-recipe.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ jobs:
290290
export SSTATE_DIR=/sstate-cache
291291
export DL_DIR=/downloads
292292
export BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS SSTATE_DIR DL_DIR"
293+
bitbake core-image-minimal -c testdata_json -f
293294
bitbake core-image-minimal
294-
bitbake core-image-minimal -f -c testimage
295+
bitbake core-image-minimal -c testimage
295296
resulttool report tmp/log/oeqa/testresults.json | tee -a ${{ matrix.machine }}-resulttool_report.txt'
296297
set -e
297298
echo RECIPES to test: $RECIPES

0 commit comments

Comments
 (0)