Explorar o código

tests/regression/regression.sh: print which tests failed

Nathalie Furmento %!s(int64=15) %!d(string=hai) anos
pai
achega
7298d2bf22
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      tests/regression/regression.sh

+ 6 - 1
tests/regression/regression.sh

@@ -66,7 +66,12 @@ do_test()
     echo ">>>> Execution configuration ${PROFILE_NUM}.${SUBPROFILE_NUM} : <$@>"
 
     ${MAKE} -C ${WORKDIR}/build check > $WORKDIR/logs/profile.${PROFILE_NUM}.${SUBPROFILE_NUM} 2>&1
-    check_exec $?
+    code_check=?
+    check_exec $code_check
+
+    if [ $code_check -ne 0 ] ; then
+        grep FAIL: $WORKDIR/logs/profile.${PROFILE_NUM}.${SUBPROFILE_NUM}
+    fi
 
     coverage=$(find ${WORKDIR}/build -name "*.gcda" 2>/dev/null)
     if [ -n "$coverage" ] ; then