Skip to contentSkip to conversation

curl: ensure all ptest failures are caught

PATCH New Alexander Kanavin 1 participant 1 message Aug 2, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 curl: ensure all ptest failures are caught

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.

---
 meta/recipes-support/curl/curl/disable-tests | 2 ++
 meta/recipes-support/curl/curl/run-ptest     | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/recipes-support/curl/curl/disable-tests +2 -0
index 92056bd8cae..b687b2bb763 100644
@@ -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
meta/recipes-support/curl/curl/run-ptest +1 -1
index 614e822922e..2c74c58f5da 100644
@@ -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//'
Signature · 1 line
2.30.2