summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-20 12:54:43 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-20 12:54:43 +0000
commitffe72624e73d4fb27477e407a3e5b50b1a707e21 (patch)
tree2e8a3eabc74f4b54383a602d1f5a8c92955beabe /tests/fate-run.sh
parentfed795927182335ddf6c8e39268cfcea989ef7ae (diff)
fate: run diff even if command fails
The diff may provide useful information even if the command was unsuccessful. The test is still treated as failed in this case. Originally committed as revision 24353 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 4112e1a76c..2db31acb73 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -95,7 +95,8 @@ seektest(){
mkdir -p "$outdir"
-$command > "$outfile" 2>/dev/null || exit
+$command > "$outfile" 2>/dev/null
+err=$?
if ! test -e "$ref"; then
echo "reference file '$ref' not found"
@@ -108,4 +109,6 @@ case $cmp in
stddev) stddev "$ref" "$outfile" "$fuzz" ;;
esac
-test $? = 0 && rm $outfile
+cmperr=$?
+test $err = 0 && err=$cmperr
+test $err = 0 && rm $outfile