fate: give stderr hint when a test fails.
authorClément Bœsch <ubitux@gmail.com>
Thu, 22 Dec 2011 17:17:13 +0000 (18:17 +0100)
committerClément Bœsch <ubitux@gmail.com>
Mon, 26 Dec 2011 21:27:01 +0000 (22:27 +0100)
tests/fate-run.sh

index 350ff57..2f92a7d 100755 (executable)
@@ -136,5 +136,9 @@ fi
 
 echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile
 
-test $err = 0 && rm -f $outfile $errfile $cmpfile $cleanfiles
+if test $err = 0; then
+    rm -f $outfile $errfile $cmpfile $cleanfiles
+else
+    echo "Test $test failed. Look at $errfile for details."
+fi
 exit $err