From 58235ac14dfd39b8879498049a7a84c9129de22e Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 8 Mar 2021 19:27:07 -0300 Subject: [PATCH] Try to fix comparing text lines on Windows --- run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index ca535ba20..c7f630de9 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -14,7 +14,7 @@ function fail() { } function expect() { - if [[ $1 != $($2) ]] ; then + if [[ $1 != "$($2 | tr -d "\r")" ]] ; then echo "FAILED: $2" echo "EXPECTED: $1" echo "RESULT: $($2)"