summaryrefslogtreecommitdiffstats
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:13 +0000
commit20b1e729e1b4d39c245b4e12729f239ff4342062 (patch)
tree6b72e31a4a0dada07ba51d84fee825efbaac0ac6
parent81d90fc81c093ecdd99a00382b2c85a3a4c429f2 (diff)
downloadpoky-20b1e729e1b4d39c245b4e12729f239ff4342062.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]. (From OE-Core rev: 9665d272df34bcb2811a2f7a1afccabe4bebc9d1) 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>
-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
58max_njobs=$(grep -c ^processor /proc/cpuinfo) 58max_njobs=$(grep -c ^processor /proc/cpuinfo)
59njobs=0 59njobs=0
60 60
61set +e
62
61for t in *; do 63for t in *; do
62 [ -x $t ] || continue 64 [ -x $t ] || continue
63 [ -f $t ] || continue 65 [ -f $t ] || continue
@@ -80,6 +82,14 @@ passed=$(grep -c PASS ${LOG})
80failed=$(grep -c FAIL ${LOG}) 82failed=$(grep -c FAIL ${LOG})
81total=$(expr ${passed} + ${failed} + ${skipped}) 83total=$(expr ${passed} + ${failed} + ${skipped})
82 84
85if [ ${failed} -ne 0 ]; then
86 echo
87 echo "Tests failed for gnutls, log is:"
88 echo "--------------------"
89 cat ${LOG}
90 echo
91fi
92
83echo 93echo
84echo "gnutls test summary:" 94echo "gnutls test summary:"
85echo "--------------------" 95echo "--------------------"