From cc599d50f87b7360f8ee9d2ccab71d6c6e04403e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 11 Sep 2026 22:49:51 -0700 Subject: [PATCH] openjpeg: fix run-ptest with busybox sed run-ptest piped ctest output through 'sed -u', which busybox sed does not support, so the pipeline produced no output and the ptest image reported "ptests which had no test results: ['openjpeg']". Drop sed and classify ctest result lines in awk directly. This also maps Timeout/Exception/Not Run results to FAIL; previously they were printed as e.g. "Exception:: " and ignored by the ptest parser. Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/openjpeg/openjpeg/run-ptest | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-graphics/openjpeg/openjpeg/run-ptest b/meta-oe/recipes-graphics/openjpeg/openjpeg/run-ptest index a161244fbd..dc2ccf6c21 100644 --- a/meta-oe/recipes-graphics/openjpeg/openjpeg/run-ptest +++ b/meta-oe/recipes-graphics/openjpeg/openjpeg/run-ptest @@ -1,4 +1,11 @@ #!/bin/sh # Only run unit tests, exclude nonregression and conformance tests that need external data files -ctest -E "(NR-|CONF-|ETS-|testjp2)" -V | sed -u 's/\*\*\*/ /g' | awk '/Test +#/{gsub(/Passed/,"PASS"); gsub(/Failed/,"FAIL"); gsub(/Skipped/,"SKIP"); print $6": "$4; fflush();}' +# ctest result lines look like: " 1/29 Test #1: tte0 ..... Passed 0.01 sec" +# anything other than Passed/Skipped/Disabled (Failed, Timeout, Exception, Not Run) is a FAIL +ctest -E "(NR-|CONF-|ETS-|testjp2)" -V | awk '/Test +#[0-9]+:/ { + if ($0 ~ /Passed/) res = "PASS" + else if ($0 ~ /Skipped|Disabled/) res = "SKIP" + else res = "FAIL" + print res ": " $4; fflush() +}'