]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
curl: ensure all ptest failures are caught
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 2 Aug 2023 18:02:30 +0000 (20:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Aug 2023 11:44:36 +0000 (12:44 +0100)
Piping results through sed is masking failures that aren't
picked up by sed expressions.

One such failure probes the source tree, and so isn't
relevant for target testing, and can be disabled.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/curl/curl/disable-tests
meta/recipes-support/curl/curl/run-ptest

index 92056bd8cae5247658b1e82e63f617026c19bf5b..b687b2bb76385c3ee2053c8a479ddc06d29d9552 100644 (file)
@@ -18,6 +18,8 @@
 1165
 # This CRL test is looking for src files
 1185
+# This test is scanning the source tree
+1222
 # These CRL tests need --libcurl option to be enabled
 1400
 1401
index 614e822922e367026397a16acf0af8a8ee04b94d..2c74c58f5da342005cb87d8827238cd8dbeb52ec 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 cd tests
-./runtests.pl -a -n -s | sed \
+{ ./runtests.pl -a -n -s || echo "FAIL: curl" ; } | sed \
      -e 's|\([^ ]* *\) \([^ ]* *\)...OK|PASS: \1 \2|' \
      -e 's|\([^ ]* *\) \([^ ]* *\)...FAILED|FAIL: \1 \2|' \
      -e 's/Warning: test[0-9]\+ not present in tests\/data\/Makefile.inc//'