mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 19:58:36 +00:00
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>