diff --git a/tests/regression.sh b/tests/regression.sh index 504420b5ee..d94f437fc5 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -12,6 +12,11 @@ else diff_cmd="diff" fi +diff -w $0 $0 > /dev/null 2>&1 +if [ $? -eq 0 ]; then + diff_cmd="$diff_cmd -w" +fi + set -e datadir="./data"