From 0c57e74606b4e87606b0a9164fbfa4947e89e29c Mon Sep 17 00:00:00 2001 From: Philipp Wollermann Date: Mon, 9 Aug 2021 17:15:50 +0200 Subject: Remove `$` from grep regexes (#311) Due to grep having dropped support for handling line-ending matches in a cross-platform way, grepping for `...$` will now fail on Windows, as it no longer ignores the CR part of the CRLF line endings on Windows. This should turn this project green again on Bazel CI. --- tests/write_file/write_file_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/write_file/write_file_tests.sh b/tests/write_file/write_file_tests.sh index 247c696..0f48ca0 100755 --- a/tests/write_file/write_file_tests.sh +++ b/tests/write_file/write_file_tests.sh @@ -52,8 +52,8 @@ function test_write_empty_text() { function test_write_nonempty_text() { cat "$(rlocation bazel_skylib/tests/write_file/out/nonempty.txt)" >"$TEST_log" - expect_log '^aaa$' - expect_log '^bbb$' + expect_log '^aaa' + expect_log '^bbb' } function test_write_empty_bin() { @@ -62,7 +62,7 @@ function test_write_empty_bin() { function test_write_nonempty_bin() { cat "$(rlocation bazel_skylib/tests/write_file/nonempty-bin-out.txt)" >"$TEST_log" - expect_log '^potato$' + expect_log '^potato' } run_suite "write_file_tests test suite" -- cgit v1.2.3