From: momoyon Date: Sun, 30 Mar 2025 15:51:53 +0000 (+0500) Subject: Update test.py X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;h=187851daffb8ba02da14e81cbb3c5cf2beeb8d6a;p=lang.git Update test.py --- 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}")