From e82bf9a3c0de2f746319d9d8e4db14ebaa8efd54 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 27 Oct 2026 09:07:52 +0100 Subject: [PATCH] Gate: a failing Python probe is not a passed case 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 3b7e6d60..73db1da8 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 } 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 }