tests/fate-run.sh: Cat .err file in case of error with V>0
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 23 Sep 2014 21:38:29 +0000 (23:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 21:52:28 +0000 (23:52 +0200)
This may make fate failures where only the console output is available
easier to analyze

Suggested-by: Andreas Cadhalpun
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 00d3bb1a074b60fd9687679e4147f56d81886b05)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/fate-run.sh

index 7fe7e74..b994aba 100755 (executable)
@@ -248,6 +248,7 @@ if test $err = 0; then
     rm -f $outfile $errfile $cmpfile $cleanfiles
 elif test $gen = "no"; then
     echo "Test $test failed. Look at $errfile for details."
+    test "${V:-0}" -gt 0 && cat $errfile
 else
     echo "Updating reference failed, possibly no output file was generated."
 fi