mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:15:52 +01:00
[PR #284] test: compare Wine launcher physical paths #335
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#335
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/284
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10014📝 Commits (1)
04fb785test: compare Wine launcher physical paths📊 Changes
1 file changed (+7 additions, -3 deletions)
View changed files
📝
tests/test_make_game_platform.py(+7 -3)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117015911
What and why
The generated Wine launcher uses
readlink -fto find its directory, andcdyields the physical game directory. On macOS,TemporaryDirectory()may return a/var/...path while those shell operations report/private/var/.... The synthetic packaging test compared the two spellings literally, causing three failures onmaina8b7ddbd5. It now compares the physical game, overlay, working directory, and relocated shader path while retaining the full argument and environment assertions. Production code is unchanged.Tested
macOS, Python 3.12, synthetic files only; no Wine execution, GPU, or game files:
python3.12 -I tests/test_make_game_platform.py: 3 failures of 46.python3.12 -I tests/test_make_game_platform.py: 46/46 pass.test_make_game_paths.py(3 pass/2 expected skips),test_runtime_paths.py(5),test_run_wine_tests.py(63),test_run_wine_test_fixtures.py(6),test_console_paths.py(1), andtest_make_game_dry_run.py(24).python3.12 -I scripts/check_no_game_data.py tests/test_make_game_platform.py,compileall, andgit diff --checkpass.AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.