Try to fix comparing text lines on Windows

This commit is contained in:
David Capello 2021-03-08 19:27:07 -03:00
parent 293f9170b6
commit 58235ac14d

View File

@ -14,7 +14,7 @@ function fail() {
} }
function expect() { function expect() {
if [[ $1 != $($2) ]] ; then if [[ $1 != "$($2 | tr -d "\r")" ]] ; then
echo "FAILED: $2" echo "FAILED: $2"
echo "EXPECTED: $1" echo "EXPECTED: $1"
echo "RESULT: $($2)" echo "RESULT: $($2)"