The run-ptest script uses 'grep -i SKIP' to detect skipped tests, which incorrectly marks entire test files as SKIP when they merely contain the word 'skip' in their output. This happens with:
- TAP subtest skip directives: 'ok 3 # skip PadWalker required' - Test descriptions containing 'skip': 'ok 84 - attributes successfully skipped' Per the TAP specification, a test file is fully skipped only when its plan line reads '1..0' (zero tests planned). Change the detection to match only this pattern. Tested across all 12 recipes that use the default ptest-perl run-ptest. The fix corrects 19 false SKIPs to PASS across 5 recipes. [YOCTO #13411] AI-Generated: Assisted by Claude Sonnet 4 Signed-off-by: Pratik Farkase <[email protected]> --- meta/files/ptest-perl/run-ptest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/files/ptest-perl/run-ptest b/meta/files/ptest-perl/run-ptest index 51e467abe7..814d50ae63 100644 --- a/meta/files/ptest-perl/run-ptest +++ b/meta/files/ptest-perl/run-ptest @@ -8,7 +8,7 @@ for case in `find t -type f -name '*.t'`; do if [ $ret -ne 0 ]; then result=1 echo "FAIL: ${case%.t}" - elif grep -i 'SKIP' $case.output; then + elif grep -q '^1\.\.0' $case.output; then echo "SKIP: ${case%.t}" else echo "PASS: ${case%.t}" -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#244233): https://lists.openembedded.org/g/openembedded-core/message/244233 Mute This Topic: https://lists.openembedded.org/mt/120919250/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
