test: ignore \r when diffing

This commit is contained in:
Sebastian Ullrich 2020-09-15 10:01:07 +02:00 committed by Leonardo de Moura
parent 897f277a3e
commit 1e6faf3f28

View file

@ -45,7 +45,7 @@ function exec_check {
function diff_produced {
if test -f "$f.expected.out"; then
if $DIFF -au -I "executing external script" "$f.expected.out" "$f.produced.out"; then
if $DIFF -au --strip-trailing-cr -I "executing external script" "$f.expected.out" "$f.produced.out"; then
exit 0
else
echo "ERROR: file $f.produced.out does not match $f.expected.out"