diff --git a/src/test/shell/bazel/starlark_repository_test.sh b/src/test/shell/bazel/starlark_repository_test.sh index 5ede0d662cb997..0d08571e65cf33 100755 --- a/src/test/shell/bazel/starlark_repository_test.sh +++ b/src/test/shell/bazel/starlark_repository_test.sh @@ -2869,7 +2869,7 @@ function test_incompatible_no_implicit_watch_label() { echo nothing > ${outside_dir}/data.txt create_new_workspace - cat > $(setup_module_dot_bazel) < MODULE.bazel < ${outside_dir}/data.txt create_new_workspace - cat > $(setup_module_dot_bazel) < MODULE.bazel < ${outside_dir}/data.txt - - create_new_workspace - cat > $(setup_module_dot_bazel) < r.bzl <& $TEST_log || fail "expected bazel to succeed" - expect_log "I see: nothing" - - local marker_file=$(bazel info output_base)/external/@+_repo_rules+foo.marker - # the marker file for this repo should contain a reference to "@@+_repo_rules+bar". Mangle that. - sed -i'' -e 's/@@+_repo_rules+bar/@@LOL@@LOL/g' ${marker_file} - - # Running Bazel again shouldn't crash, and should result in a refetch. - bazel shutdown - bazel build @foo >& $TEST_log || fail "expected bazel to succeed" - expect_log "I see: nothing" - - # Test to clear the marker file. - echo > ${marker_file} - - # Running Bazel again shouldn't crash, and should result in a refetch. - bazel shutdown - bazel build @foo >& $TEST_log || fail "expected bazel to succeed" - expect_log "I see: nothing" -} - function test_file_watching_in_undefined_repo() { create_new_workspace cat > MODULE.bazel <