diff mbox series

[v2] gnutls: print log if ptest fails

Message ID 20240206064214.3948368-1-simone.p.weiss@posteo.com
State Accepted, archived
Commit 9665d272df34bcb2811a2f7a1afccabe4bebc9d1
Headers show
Series [v2] gnutls: print log if ptest fails | expand

Commit Message

Simone Weiß Feb. 6, 2024, 6:42 a.m. UTC
From: Simone Weiß <simone.p.weiss@posteo.com>

There are AB-INT issues with the gnutls tests and the test for naked-alerts is
failing. Tweak the run-ptest script to save the error log to obtain more infos
for debugging. Related to [YOCTO #15352].

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
---
 meta/recipes-support/gnutls/gnutls/run-ptest | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-support/gnutls/gnutls/run-ptest b/meta/recipes-support/gnutls/gnutls/run-ptest
index 84948f487d..17e26eae70 100644
--- a/meta/recipes-support/gnutls/gnutls/run-ptest
+++ b/meta/recipes-support/gnutls/gnutls/run-ptest
@@ -58,6 +58,8 @@  cd tests
 max_njobs=$(grep -c ^processor /proc/cpuinfo)
 njobs=0
 
+set +e
+
 for t in *; do
     [ -x $t ] || continue
     [ -f $t ] || continue
@@ -80,6 +82,14 @@  passed=$(grep -c PASS ${LOG})
 failed=$(grep -c FAIL ${LOG})
 total=$(expr ${passed} + ${failed} + ${skipped})
 
+if [ ${failed} -ne 0 ]; then
+    echo
+    echo "Tests failed for gnutls, log is:"
+    echo "--------------------"
+    cat ${LOG}
+    echo
+fi
+
 echo
 echo "gnutls test summary:"
 echo "--------------------"