summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorSimone Weiß <simone.p.weiss@posteo.com>2024-02-06 06:42:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-08 10:53:03 +0000
commit9665d272df34bcb2811a2f7a1afccabe4bebc9d1 (patch)
tree346bc66eb042a8557764bda7cbfa55276322db96 /meta/recipes-support
parent31030e7a19a27ad424b997fad36ee4f633ce0d63 (diff)
downloadopenembedded-core-9665d272df34bcb2811a2f7a1afccabe4bebc9d1.tar.gz
gnutls: print log if ptest fails
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>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/gnutls/gnutls/run-ptest10
1 files changed, 10 insertions, 0 deletions
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 "--------------------"