diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 7dce9b030e84a794f9c24918808eca7b6eafed42..278e2479bcaff1769e4cec150915feac0e18e21c 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -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"            ;;