Skip to content

Commit 8a76834

Browse files
Ignore Windows line endings
1 parent 1435ee2 commit 8a76834

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ my_diff() {
2727
file_a=$1
2828
file_b=$2
2929
# Fix Windows path separators (\\) in the output to look like UNIX ones (/)
30-
diff $file_a <(cat $file_b | sed 's~\\\\~/~g')
30+
# and convert CRLF to LF
31+
diff $file_a <(cat $file_b | sed 's~\\\\~/~g' | tr -d '\r')
3132
}
3233

3334
# armv7r-none-eabi tests

0 commit comments

Comments
 (0)