Skip to content

Commit 6da1495

Browse files
Googlercopybara-github
authored andcommitted
Follow up to bazelbuild@68e2eb5 to fix overly-broad test assertion.
RELNOTES: fixes overly-broad test assertion PiperOrigin-RevId: 597586163 Change-Id: I17f63621ac50b6c186bdadbfe1d1d5804f9e0341
1 parent d316baa commit 6da1495

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/shell/bazel/local_repository_test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,9 @@ EOF
850850

851851
bazel build @r//:public >& $TEST_log || fail "failed to build public target"
852852
bazel build @r//:private >& $TEST_log && fail "could build private target"
853-
expect_log "target '//:private' is not visible from
854-
target '//external:private'"
853+
# Note: Visibility error extends across multiple lines
854+
expect_log "^target '//:private' is not visible from\$"
855+
expect_log "^target '//external:private'\$"
855856
}
856857

857858
function test_load_in_remote_repository() {

0 commit comments

Comments
 (0)