Browse Source

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

Nathalie Furmento 15 years ago
parent
commit
7298d2bf22
1 changed files with 6 additions and 1 deletions
  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