mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #86] [CLOSED] tests: give the mod manager the launcher its platform looks for #138
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#138
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/86
Author: @wavehs
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:tests-win-mods-launcher📝 Commits (1)
4486565tests: give the mod manager the launcher its platform looks for📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
tests/test_leonida_mods.py(+3 -0)📄 Description
Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository's issue index (#18) has no entry for it. No open pull request touches this file.
Depends on: none.
What and why
tools/leonida_mods.py:493picks the runtime launcher by platform —("gta6rt.exe",)on Windows,("gta6rt.sh", "gta6rt.exe")everywhere else — andtest_run_print_builds_gta6rt_commandwrote onlygta6rt.sh. On the Windows runnerrun --dry-run --printtherefore exited 2 withinstead of printing the command, and the test failed on its
(code, err) == (0, "")assertion (thecheckjob on9ec34cdff).The fixture now writes both launchers. POSIX still finds the
.shfirst, so what the test checks is unchanged.Tested
macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files:
tests/test_leonida_mods.pymain@9ec34cdffOK(POSIX: the.shis found)OKThe Windows shape is reproduced by calling
runtime_executable()on a port that holds onlygta6rt.shwithos.nameset to"nt": it raisesModsError: ... has no gta6rt executable; build the runtime stage first, the CI message; withgta6rt.exeadded it returns that file. Not run on Windows itself.compileallclean,check_no_game_data.pyclean.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (Not applicable: test-only.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.