upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorDiego Luiz Becker <diegoluizbecker@gmail.com>2026-11-24 19:55:42 -0300
committerDiego Luiz Becker <diegoluizbecker@gmail.com>2026-11-29 10:16:57 -0300
commit24d89be1739c18cfa655530c874ebe386b98ae97 (patch)
treec62044502785281fc2e9c891fbb6c7af5a70a648 /runtime/test/queue_proxy_test.cpp
parent3535eb5c4b200acadddf9bf7318b921deecccc38 (diff)
make_game: a run without the LEONIDA board still writes <work>/logs/<stage>.log (MAKE-GAME-PLAIN-LOG)
Only the board wrote the stage logs, so a build with --no-tui (or with stdout redirected) left nothing in <work>/logs to read afterwards. PlainStageLogs now covers that case while the build stages run: - log() and fail() lines go to the console as before and to the running stage's log; - a command run() starts for a build stage has its stdout and stderr through one pipe: every byte goes on to the console as it arrives (a \r progress line still redraws) and every \r- or \n-ended piece to the stage's log, the same split the board uses. The child keeps the console, so Ctrl+C reaches it as before; on Ctrl+C it gets 0.25 s to stop and is then killed, as subprocess.run does; - a caller that sets its own pipes, and commands outside a build stage, keep subprocess.run; - a stage's file is opened with its first line; an unwritable folder gives one note on stderr and the build goes on without the logs. The module docstring and the --no-tui help say where the logs are in both modes. tests/test_make_game_plain_logs.py covers the cases above with real child processes.
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions