diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 4112e1a76ca4b44d217a41890d8f27f130a19fc7..2db31acb73ce3b658fb6e6b58397cc4e463a031a 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -95,7 +95,8 @@ seektest(){
 
 mkdir -p "$outdir"
 
-$command > "$outfile" 2>/dev/null || exit
+$command > "$outfile" 2>/dev/null
+err=$?
 
 if ! test -e "$ref"; then
     echo "reference file '$ref' not found"
@@ -108,4 +109,6 @@ case $cmp in
     stddev) stddev     "$ref" "$outfile" "$fuzz"    ;;
 esac
 
-test $? = 0 && rm $outfile
+cmperr=$?
+test $err = 0 && err=$cmperr
+test $err = 0 && rm $outfile