]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
gnutls: print log if ptest fails
authorSimone Weiß <simone.p.weiss@posteo.com>
Tue, 6 Feb 2024 06:42:14 +0000 (06:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Feb 2024 10:53:03 +0000 (10:53 +0000)
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>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/gnutls/gnutls/run-ptest

index 84948f487d1b8882809a8268eb9b583dbd6afef2..17e26eae70dc50a0b167dc693470156273a96c94 100644 (file)
@@ -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 "--------------------"