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

Open
github-bot wants to merge 1 commit from github-bot/gh-119 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:22 UTC · original
ubiquitarianism:old-pr/9853 → main · +4 −1 · 1 files · 1 commits · draft

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.

**@⁠Andretuta** on GitHub · 2026-11-24 02:22 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/119) `ubiquitarianism:old-pr/9853` → `main` · +4 −1 · 1 files · 1 commits · draft > 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:45:04 +00:00
Author
Owner

@⁠wavehs on GitHub · 2026-11-24 02:40 UTC · original

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.

**@⁠wavehs** on GitHub · 2026-11-24 02:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/119#issuecomment-7120368884) 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.
This pull request has changes conflicting with the target branch.
  • tests/test_leonida_mods.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/119/head:github-bot/gh-119'
git switch 'github-bot/gh-119'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-119'
git switch 'github-bot/gh-119'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-119'
git switch 'github-bot/gh-119'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-119'
git switch 'main'
git merge --squash 'github-bot/gh-119'
git switch 'main'
git merge --ff-only 'github-bot/gh-119'
git switch 'main'
git merge 'github-bot/gh-119'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.