Skip to content

Commit 4dff11b

Browse files
committed
Fix test_compiler_sources_integrity.sh on non-Mac
The unescaped `{` in the expected failure message caused `test_fail_if_compiler_srcjar_object_is_empty` to fail on Linux and Windows. Rather than escape it, it works just as well to remove it entirely. See also the "Escape '{', '}' in `test/shell/test_bzlmod_macros`" message from bazel-contrib#1722 and commit 3f37e26.
1 parent 898484e commit 4dff11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/shell/test_compiler_sources_integrity.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ test_fail_if_compiler_srcjar_object_is_empty() {
195195
# scala_compiler_srcjar argument was empty. Therefore it's worth testing here.
196196
local expected_msg=(
197197
"scala_compiler_srcjar invalid, must be a dict with exactly one of"
198-
'"label", "url" or "urls" keys, got: {'
198+
'"label", "url" or "urls" keys, got: '
199199
)
200200

201201
action_should_fail_with_message \

0 commit comments

Comments
 (0)