]> git.sesse.net Git - ffmpeg/commitdiff
fate: fail with a sensible error message if reference file is missing
authorMåns Rullgård <mans@mansr.com>
Fri, 9 Jul 2010 23:55:16 +0000 (23:55 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 9 Jul 2010 23:55:16 +0000 (23:55 +0000)
Originally committed as revision 24152 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/fate-run.sh

index bf6280541469c13ce334aff6366e611ed69c5c10..ba5d09d233876dd64d9c64d35aaa9e85bb4f814e 100755 (executable)
@@ -24,6 +24,11 @@ oneoff(){
     fi
 }
 
+if ! test -e "$ref"; then
+    echo "reference file '$ref' not found"
+    exit 1
+fi
+
 mkdir -p "$outdir"
 
 eval $target_exec $command > "$outfile" 2>/dev/null || exit