Message ID | ZxJRVlQiy1SzAHyT@metallschleim.local |
---|---|
State | New |
Headers | show |
Series | Make fate tests succeed with zlib-ng | expand |
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 72251ec571..bed8f7127c 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -652,7 +652,7 @@ if test -e "$ref" || test $cmp = "oneline" || test $cmp = "null" || test $cmp = null) cat "$outfile" >$cmpfile ;; esac cmperr=$? - if test -e "$ref".alt && !(test $cmp = "oneline" || test $cmp = "null" || test $cmp = "grep") ; then + if test $cmperr != 0 && test -e "$ref".alt && !(test $cmp = "oneline" || test $cmp = "null" || test $cmp = "grep") ; then case $cmp in diff) diff -u -b "$ref".alt "$outfile" >$cmpfile ;; rawdiff)diff -u "$ref".alt "$outfile" >$cmpfile ;;