From 284db4b32fa075c11a7a7b65d4b651e150431628 Mon Sep 17 00:00:00 2001 From: hvd Date: Wed, 29 Mar 2023 16:43:58 +0200 Subject: [PATCH] Fix starlark_repository_test Change the grep pattern to exactly match what the test is looking for. The old pattern would match BUILD file content from the jdk_build_file.bzl template --- src/test/shell/bazel/starlark_repository_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/shell/bazel/starlark_repository_test.sh b/src/test/shell/bazel/starlark_repository_test.sh index afec945adb7ebc..1f526efcbdeb4c 100755 --- a/src/test/shell/bazel/starlark_repository_test.sh +++ b/src/test/shell/bazel/starlark_repository_test.sh @@ -1451,9 +1451,9 @@ EOF echo "new value" > reference.txt.shadow bazel sync --configure --experimental_repository_resolved_file=resolved.bzl \ 2>&1 || fail "Expected sync --configure to succeed" - grep -q 'name.*configure' resolved.bzl \ + grep -q '"name": "configure"' resolved.bzl \ || fail "Expected 'configure' to be synced" - grep -q 'name.*source' resolved.bzl \ + grep -q '"name": "source"' resolved.bzl \ && fail "Expected 'source' not to be synced" || : bazel build //:source //:configure