Commit Graph

4 Commits

Author SHA1 Message Date
d96bcbc375 tests: keep the TUI's os._exit(130) SIGINT handler out of the test process (TEST-LEONIDA-TUI-SIGINT-LEAK)
run_setup() and LeonidaBoard.__enter__ call install_interrupt_handlers(), which
replaces the process-wide SIGINT handler (and on Windows SIGBREAK and the console
control handler) with one that calls os._exit(130) and never restores the old one.
Under one shared runner (pytest tests) a later test that raises KeyboardInterrupt on
purpose, such as test_run_semantic_tests.py's interrupt tests, then ends the whole
test process with exit code 130 and no summary.

Patch install_interrupt_handlers to a no-op for the module and add a test that the
process SIGINT handler is unchanged after run_setup().
2026-11-26 12:57:27 +01:00
93a0f21f49 BUILD-STAGES: report a stage that raises instead of failing silently
A stage that raises outright (not through fail()) was swallowed by the
run_build_stages exception handlers: the build stopped with exit 1 and an
empty stderr, so a permission or copy failure gave no visible cause
(board #1608 comment 7163281819). Report the stage name and the exception
once per stage on stderr from the series loop, the wait handler and the
final drain; fail()'s own diagnostics are unchanged and RuntimeError from
its sys.exit is not re-reported.

Tested: tests/test_leonida_tui.py UnexpectedStageExceptionTest (both
overlap modes, fails without the fix); test_make_game_* and stage suites
pass.
2026-11-25 13:16:50 +00:00
5523b44169 Honor the Windows console input deadline 2026-11-24 13:33:39 +08:00
c646bf8367 Speed up make_game by overlapping stages and showing progress. (#1797)
Squash-merged after diff review of PR #1797
2026-11-23 09:32:22 -06:00