fate: apply TARGET_EXEC only to commands starting with absolute path
[libav.git] / 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"            ;;