tests: compare the Wine launcher's physical paths with realpath #9
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!9
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/9/head"
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?
@wavehs on GitHub · 2026-11-24 01:31 UTC · original
wavehs:test-platform-realpath→main· +9 −3 · 1 files · 1 commits · merged 2026-11-24 01:40 UTCClaimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. No open pull request touches
tests/test_make_game_platform.py.Depends on: none.
What and why
test_wine_first_boot_uses_the_packaged_game_and_shader_pathsruns the generated POSIX launcher and compares the paths the runtime sees. The launcher resolves its own path withreadlink -fand letscdsettle the game directory, so the runtime gets the physical path: on macOS the temporary directory is/var/folders/..., a symlink to/private/var/folders/..., and three assertions failed on this host:The expectations are now
os.path.realpath'd, which is a no-op on Linux and Windows; the test still checks the same values.Tested
main@30daa6958, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files:tests/test_make_game_platform.pymain@30daa6958FAILED (failures=3)— the--dry-run/--initpath list,self.root, and the moved-portLEONIDA_SHADERSpathRan 46 tests ... OKcompileallclean,check_no_game_data.pyclean. Not run: Windows, Linux, any GPU or game data.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)