Skip to content

Commit

Permalink
Fix starlark_repository_test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hvadehra committed Mar 29, 2023
1 parent 12dcb0b commit 284db4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/shell/bazel/starlark_repository_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 284db4b

Please sign in to comment.