mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #1239] run_guest_scene: take the Wine from $WINE when --wine is not given (OLD-10047) #1271
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#1271
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/1239
Author: @IlyassRS3
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-10047-run-guest-scene-wine📝 Commits (2)
f3cd82arun_guest_scene: take the Wine from $WINE when --wine is not givendf763cerun_guest_scene: ignore ambient WINE on native Windows📊 Changes
2 files changed (+129 additions, -4 deletions)
View changed files
📝
scripts/run_guest_scene.py(+7 -4)➕
tests/test_run_guest_scene_wine.py(+122 -0)📄 Description
What changed
Carries forward
old-pr/10047(draft #313, original commit by @SkippySteve) rebased cleanly ontomain(2e026b03e), preserving the original author commit and adding a follow-up fix for native Windows:@SkippySteve):scripts/run_guest_scene.py: default--wineto$WINEwhen--wineis omitted (blank counts as unset;--winestill overrides), include the missing binary path in--wine: not found: ..., and update CLI/docstring messages.tests/test_run_guest_scene_wine.py: 5 unit tests covering$WINEpickup,--wine-argwith$WINE,--wineoverriding$WINE, missing/empty$WINErefusal outside Windows, and nonexistent$WINEreporting.df763ce9f, addressing @xel1uz's review):scripts/run_guest_scene.py: only read$WINEas the default outside Windows (os.name != "nt"), qualify the docstring /--winehelp text (default: $WINE outside Windows), and keep--wine-arg requires --wineon Windows.tests/test_run_guest_scene_wine.py: addRunGuestSceneWindowsEnvTest(3 tests, runs on every platform via aSimpleNamespacestub onrunner.os) confirming ambientWINE(existing or missing) is ignored on Windows, explicit--winestill works, and--wine-argrequires explicit--wine.Item ID
OLD-10047(carries forwardold-pr/10047/ draft #313, #17)Verification
Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only):
TMPDIR=/var/tmp python3 -I tests/test_run_guest_scene_wine.py -v-> 8/8 OK (5 POSIX + 3 Windows-mode tests)python3 -I tests/test_guest_scene_reference.py -v-> 6/6 OKHEAD~1(without the Windows guard) -> FAILED (3 failures) across all 3 Windows ambient-WINEchecks; mutation check vsmain-> FAILED (3 failures, 2 errors); restoringHEADreturns to 8/8 OK.python3 -m compileall -q scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py-> OKpython3 -I scripts/check_no_game_data.py scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py-> OKpython3 -I tests/test_ci_registration.py-> 15/15 OKpython3 -I tests/test_text_write_line_endings.py-> 3/3 OKChecklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.