1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-17 20:17:55 +02:00

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
This commit is contained in:
Måns Rullgård 2010-07-20 12:54:43 +00:00
parent fed7959271
commit ffe72624e7

View File

@ -95,7 +95,8 @@ seektest(){
mkdir -p "$outdir" mkdir -p "$outdir"
$command > "$outfile" 2>/dev/null || exit $command > "$outfile" 2>/dev/null
err=$?
if ! test -e "$ref"; then if ! test -e "$ref"; then
echo "reference file '$ref' not found" echo "reference file '$ref' not found"
@ -108,4 +109,6 @@ case $cmp in
stddev) stddev "$ref" "$outfile" "$fuzz" ;; stddev) stddev "$ref" "$outfile" "$fuzz" ;;
esac esac
test $? = 0 && rm $outfile cmperr=$?
test $err = 0 && err=$cmperr
test $err = 0 && rm $outfile