test: refine new shape test assertions

This commit is contained in:
Eric
2026-03-04 08:16:55 +00:00
parent 4cae240fe4
commit 6ad3333d2b
2 changed files with 2 additions and 2 deletions

View File

@@ -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}"

View File

@@ -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}"