From c8d02949e0f8189836a323fb9ea622bd720078ca Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 27 Oct 2026 09:07:57 +0100 Subject: [PATCH] Gate: fix the Python failure-count awk (unescaped paren) Co-Authored-By: Claude Sonnet 5.5 --- tests/vectors/document-variants-c2a/old-reader-refusal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vectors/document-variants-c2a/old-reader-refusal.sh b/tests/vectors/document-variants-c2a/old-reader-refusal.sh index 73db1da8..4f2c8fa1 100755 --- a/tests/vectors/document-variants-c2a/old-reader-refusal.sh +++ b/tests/vectors/document-variants-c2a/old-reader-refusal.sh @@ -143,7 +143,7 @@ python_unrun() { grep -E '(skipped|expected failures|unexpected successes)=' "$1 leaf_cases() { case "$1" in rust) awk '/^test result:/ { n += $4 } END { print n + 0 }' "$2" ;; - python) awk '/^Ran [0-9]+ test/ { n = $2 } /^FAILED (/ { s = $0; while (match(s, /(failures|errors)=[0-9]+/)) { n -= substr(s, RSTART + index(substr(s, RSTART), "=")); s = substr(s, RSTART + RLENGTH) } } END { print n + 0 }' "$2" ;; + python) awk '/^Ran [0-9]+ test/ { n = $2 } /^FAILED [(]/ { s = $0; while (match(s, /(failures|errors)=[0-9]+/)) { n -= substr(s, RSTART + index(substr(s, RSTART), "=")); s = substr(s, RSTART + RLENGTH) } } END { print n + 0 }' "$2" ;; typescript) awk '/^[^[:alnum:]]*pass [0-9]+$/ { n = $NF } END { print n + 0 }' "$2" ;; esac }