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 |
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 "--------------------"