From 3d38a7260b43f52ac8e2a217995c321db67fcc00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 22 Dec 2011 18:17:13 +0100 Subject: [PATCH] fate: give stderr hint when a test fails. --- tests/fate-run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 350ff573c7..2f92a7dda6 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -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