tests: create gta6rt.exe on Windows in test_leonida_mods run --print test #119

Closed
Andretuta wants to merge 1 commit from upstream-pr/119 into main
Andretuta commented 2026-11-24 02:22:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:22:42Z.


Carried over from old PR 9853 by lordon1a in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9853, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
lordon1a: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116717748

What and why

tests/test_leonida_mods.py (test_run_print_builds_gta6rt_command) only writes gta6rt.sh into the temporary port directory, so on Windows (os.name == "nt"), where tools/leonida_mods.py resolves gta6rt.exe, the test fails with exit code 2 (port has no gta6rt executable).

Creates gta6rt.exe when os.name == "nt" and gta6rt.sh otherwise.

Verification (Windows 11 Home 26H2, CPython 3.11.9, CPU only, no game files)

  • Before fix (2d53a8055): python -I tests/test_leonida_mods.py -> FAIL (1 failure).
  • After fix: python -I tests/test_leonida_mods.py -v -> 10/10 tests OK in 0.078s.
  • python -I scripts/check_no_game_data.py tests/test_leonida_mods.py: clean (rc=0).
  • git diff --check: clean (rc=0).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464876849 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/119). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:22:42Z. --- > Carried over from **old PR 9853** by `lordon1a` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9853`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `lordon1a`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116717748 ### What and why `tests/test_leonida_mods.py` (`test_run_print_builds_gta6rt_command`) only writes `gta6rt.sh` into the temporary port directory, so on Windows (`os.name == "nt"`), where `tools/leonida_mods.py` resolves `gta6rt.exe`, the test fails with exit code 2 (`port has no gta6rt executable`). Creates `gta6rt.exe` when `os.name == "nt"` and `gta6rt.sh` otherwise. ### Verification (Windows 11 Home 26H2, CPython 3.11.9, CPU only, no game files) - Before fix (`2d53a8055`): `python -I tests/test_leonida_mods.py` -> **FAIL (1 failure)**. - After fix: `python -I tests/test_leonida_mods.py -v` -> **10/10 tests OK in 0.078s**. - `python -I scripts/check_no_game_data.py tests/test_leonida_mods.py`: clean (`rc=0`). - `git diff --check`: clean (`rc=0`). AI-assisted.
wavehs commented 2026-11-24 02:40:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-24T02:40:12Z.


Checked this branch: tests/test_leonida_mods.py -> OK. Note that the branch predates the latin-1 joaat fix that is now on main (#22), so running it standalone also shows the 12 test_joaat_agreement failures; a pull_request CI run checks the merge commit and will not see them, and the diff itself is right.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7120368884 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/119#issuecomment-7120368884). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-24T02:40:12Z. --- Checked this branch: `tests/test_leonida_mods.py` -> `OK`. Note that the branch predates the latin-1 joaat fix that is now on `main` (#22), so running it standalone also shows the 12 `test_joaat_agreement` failures; a `pull_request` CI run checks the merge commit and will not see them, and the diff itself is right.
MoonEyes commented 2026-11-30 18:56:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T18:56:22Z.


Closing as superseded by current main: tests/test_leonida_mods.py already selects gta6rt.exe and writes an MZ fixture on Windows, while retaining the shell launcher elsewhere. The PR's only change is already covered. This carried-over branch is a draft with a conflict, cancelled checks, and no current claim.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7288595466 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/119#issuecomment-7288595466). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T18:56:22Z. --- Closing as superseded by current main: tests/test_leonida_mods.py already selects gta6rt.exe and writes an MZ fixture on Windows, while retaining the shell launcher elsewhere. The PR's only change is already covered. This carried-over branch is a draft with a conflict, cancelled checks, and no current claim.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!119
No description provided.