From f047fc82d5be41d434ad2a98ae5c745b0cad8e97 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Aug 2026 15:29:40 +0530 Subject: [PATCH] Report python test worker failures separately from test failures --- kitty_tests/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kitty_tests/main.py b/kitty_tests/main.py index 6341ae252..48ea9adfa 100644 --- a/kitty_tests/main.py +++ b/kitty_tests/main.py @@ -316,7 +316,7 @@ def run_test_worker(tests: list[unittest.TestCase], write_fd: int) -> None: with forwardable_stdio(): result = PipeTestResult(write_fd) unittest.TestSuite(tests).run(result) - exit_code = 0 if not result.failures and not result.errors else 1 + exit_code = 0 except Exception: import traceback @@ -534,7 +534,9 @@ def collect_worker_results( py_worker_errors.append(rec['msg']) for pid in pids: - os.waitpid(pid, 0) + _, status = os.waitpid(pid, 0) + if status != 0: + py_worker_errors.append(f'Python test worker {pid} exited with status {os.waitstatus_to_exitcode(status)}') elapsed = time.monotonic() - start