[FFmpeg-cvslog] fate: give stderr hint when a test fails.

Clément Bœsch git at videolan.org
Mon Dec 26 22:37:31 CET 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Dec 22 18:17:13 2011 +0100| [3d38a7260b43f52ac8e2a217995c321db67fcc00] | committer: Clément Bœsch

fate: give stderr hint when a test fails.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d38a7260b43f52ac8e2a217995c321db67fcc00
---

 tests/fate-run.sh |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 350ff57..2f92a7d 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



More information about the ffmpeg-cvslog mailing list