fate: exit with error immediately if test command fails
authorMåns Rullgård <mans@mansr.com>
Fri, 9 Jul 2010 23:26:33 +0000 (23:26 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 9 Jul 2010 23:26:33 +0000 (23:26 +0000)
Originally committed as revision 24147 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/fate-run.sh

index 7dce9b0..278e247 100755 (executable)
@@ -26,7 +26,7 @@ oneoff(){
 
 mkdir -p "$outdir"
 
-eval $target_exec $command > "$outfile" 2>/dev/null
+eval $target_exec $command > "$outfile" 2>/dev/null || exit
 
 case $cmp in
     diff)   diff -u -w "$ref" "$outfile"            ;;