diff --git a/tests/vectors/document-variants-c2a/old-reader-refusal.sh b/tests/vectors/document-variants-c2a/old-reader-refusal.sh index 9bfede28..9b67a220 100755 --- a/tests/vectors/document-variants-c2a/old-reader-refusal.sh +++ b/tests/vectors/document-variants-c2a/old-reader-refusal.sh @@ -113,7 +113,8 @@ probe_staged() { return $rc } -summary_of() { grep -o 'REFLIST-SUMMARY .*' "$1" | sort -u; } +# A log with no summary line (a stage that failed before printing one) yields an empty file, and the gate names the failure. +summary_of() { { grep -o 'REFLIST-SUMMARY .*' "$1" || true; } | sort -u; } # Cases a TRX records for test classes whose name ends in $2 (every class when $2 is empty); 0 when the run wrote no TRX. trx_cases() { if [ -f "$1" ]; then grep -o "]*className=\"[^\"]*$2\"" "$1" | wc -l; else echo 0; fi; }