diff options
author | Philipp Wollermann <philwo@google.com> | 2021-08-09 17:15:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 11:15:50 -0400 |
commit | 0c57e74606b4e87606b0a9164fbfa4947e89e29c (patch) | |
tree | 158bf35fa8e23b1e3d2578e19f1ad3d93b3ae668 | |
parent | b053a5ae113fe48ecd100a0055fcdaa223d2253a (diff) | |
download | bazel-skylib-0c57e74606b4e87606b0a9164fbfa4947e89e29c.tar.gz |
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.
-rwxr-xr-x | tests/write_file/write_file_tests.sh | 6 |
1 files 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" |