fate: apply TARGET_EXEC only to commands starting with absolute path
authorMåns Rullgård <mans@mansr.com>
Sun, 18 Jul 2010 20:19:25 +0000 (20:19 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 18 Jul 2010 20:19:25 +0000 (20:19 +0000)
Originally committed as revision 24313 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/fate-run.sh

index a4c50e2..541f87a 100755 (executable)
@@ -42,7 +42,8 @@ fi
 
 mkdir -p "$outdir"
 
-eval $target_exec $command > "$outfile" 2>/dev/null || exit
+case "$command" in /*) command="$target_exec $command" ;; esac
+eval $command > "$outfile" 2>/dev/null || exit
 
 case $cmp in
     diff)   diff -u -w "$ref" "$outfile"            ;;