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

Open
opened 2026-11-26 20:17:01 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/119
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9853


📝 Commits (1)

  • 3f90678 tests: create gta6rt.exe on Windows in test_leonida_mods run --print test

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 tests/test_leonida_mods.py (+4 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/119 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9853` --- ### 📝 Commits (1) - [`3f90678`](https://github.com/ubiquitarianism/leonida/commit/3f90678cf0626e73fb01947ab19cad56610e6234) tests: create gta6rt.exe on Windows in test_leonida_mods run --print test ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_leonida_mods.py` (+4 -1) </details> ### 📄 Description > 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#170
No description provided.