From 91bb558007488b694f4aea16dfe1292012dac601 Mon Sep 17 00:00:00 2001 From: Daniel Edrisian Date: Tue, 2 Sep 2025 19:49:42 -0700 Subject: [PATCH] n failed --- codex-rs/review | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/codex-rs/review b/codex-rs/review index d27e3e0a3f..6cce9e37d6 100755 --- a/codex-rs/review +++ b/codex-rs/review @@ -626,8 +626,9 @@ def print_progress(passed: int, completed: int, total: int, lock: threading.Lock width = 30 filled = int((completed / total) * width) if total else 0 bar = "#" * filled + "-" * (width - filled) + failed = max(0, completed - passed) with lock: - print(f"[{bar}] {completed}/{total} completed ({pct}%), {passed}/{total} passed") + print(f"[{bar}] {completed}/{total} completed ({pct}%), {failed} failed") def print_study_progress(completed: int, total: int, lock: threading.Lock): @@ -917,7 +918,8 @@ def main(): print_progress(passed, completed, total, lock) print("") - print(f"Summary: {passed}/{total} guides passing ({int((passed/total)*100) if total else 0}%)") + failures_total = max(0, total - passed) + print(f"Summary: {failures_total} failed") if args.show_errors and errors_all: print("\nErrors:") for g, e in errors_all: