From 187851daffb8ba02da14e81cbb3c5cf2beeb8d6a Mon Sep 17 00:00:00 2001 From: momoyon <ahmedsamyh10@gmail.com> Date: Sun, 30 Mar 2025 20:51:53 +0500 Subject: [PATCH] Update test.py --- test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index ca4588c..7d7d0ec 100755 --- a/test.py +++ b/test.py @@ -251,18 +251,22 @@ def main(): if stop_on_error: exit(1) else: continue else: + failed = False if res.stdout != test.build_expected_stdout: print('[FAILED]', file=sys.stderr) print(f"build_Expected: >>>{test.build_expected_stdout}>>>") print(f"But Got: >>>{res.stdout}>>>") + failed = True if stop_on_error: exit(1) if res.stderr != test.build_expected_stderr: print('[FAILED]', file=sys.stderr) print(f"build_Expected: >>>{test.build_expected_stderr}>>>") print(f"But Got: >>>{res.stderr}>>>") + failed = True if stop_on_error: exit(1) - passing_tests_count += 1 - print("[PASS] ", end='') + if not failed: + passing_tests_count += 1 + print("[PASS] ", end='') o = False if verbose_output and res.stdout: print(f"{res.stdout}") -- 2.39.5