fate: give stderr hint when a test fails.

This commit is contained in:
Clément Bœsch 2011-12-22 18:17:13 +01:00
parent 2ffee0f450
commit 3d38a7260b
1 changed files with 5 additions and 1 deletions

View File

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