From 4ee716530dd285bb9265ce6752986af7d5be8d94 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 08:16:55 +0000 Subject: [PATCH] test: refine new shape test assertions Co-authored-by: Eriyc <50216491+Eriyc@users.noreply.github.com> --- tests/bun_test_test/cache_hit_shape.sh | 2 +- tests/integration_test/repo_all_targets_test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bun_test_test/cache_hit_shape.sh b/tests/bun_test_test/cache_hit_shape.sh index 310d9ca..29bc880 100755 --- a/tests/bun_test_test/cache_hit_shape.sh +++ b/tests/bun_test_test/cache_hit_shape.sh @@ -4,5 +4,5 @@ set -euo pipefail rule_file="$1" grep -Eq 'set -euo pipefail' "${rule_file}" -grep -Eq 'src_args = " "\.join' "${rule_file}" +grep -Eq 'src_args = " "\.join\(\[_shell_quote\(src\.short_path\) for src in ctx\.files\.srcs\]\)' "${rule_file}" grep -Eq 'exec "\$\{bun_bin\}" test \{src_args\} "\$@"' "${rule_file}" diff --git a/tests/integration_test/repo_all_targets_test.sh b/tests/integration_test/repo_all_targets_test.sh index 04eb0b0..e136ed6 100755 --- a/tests/integration_test/repo_all_targets_test.sh +++ b/tests/integration_test/repo_all_targets_test.sh @@ -3,4 +3,4 @@ set -euo pipefail workflow_file="$1" -grep -Eq 'bazel test //tests/\.\.\.' "${workflow_file}" || grep -Eq 'bazel test //\.\.\.' "${workflow_file}" +grep -Eq 'bazel test //(tests/)?\.\.\.' "${workflow_file}"