Files
mandy/scripts
bobcatchris f966fc159b Tests: cover the Wine test runner, and stop it crashing on bad input
scripts/run_wine_tests.py is what runtime.yml's wine job runs, and it was the
only script in the tree with no test. tests/test_run_wine_tests.py drives it
with the Python interpreter as the "wine" command and tiny exit-code scripts
as build artifacts, so every status and exit code is checked without Wine.

That exposed three real defects, fixed here: a --tests file that is not JSON
(and JSON that is not ctest --show-only=json-v1 output) ended in a
JSONDecodeError/AttributeError before any test ran; a wine command that cannot
be started ended in FileNotFoundError out of subprocess.run, losing every
result; and WILL_FAIL/ctest booleans were read with Python truthiness, so the
JSON string "0" inverted the check. --timeout now refuses 0 and negatives,
which previously raised ValueError inside subprocess.run.

Negative control on main: 1 failure and 17 errors. With the change: 24/24.
Standard library only, no Wine, no game data.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-21 23:36:48 -06:00
..