test: compare Wine launcher physical paths #284

Closed
Andretuta wants to merge 1 commit from upstream-pr/284 into main
Andretuta commented 2026-11-24 02:59:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:59:13Z.


Carried over from old PR 10014 by WebIdentity1 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10014, 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.
WebIdentity1: 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-7117015911

What and why

The generated Wine launcher uses readlink -f to find its directory, and cd yields 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 on main a8b7ddbd5. 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:

  • Baseline python3.12 -I tests/test_make_game_platform.py: 3 failures of 46.
  • Head python3.12 -I tests/test_make_game_platform.py: 46/46 pass.
  • Related suites 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), and test_make_game_dry_run.py (24).
  • python3.12 -I scripts/check_no_game_data.py tests/test_make_game_platform.py, compileall, and git diff --check pass.

AI-assisted: yes.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465244842 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/284). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:59:13Z. --- > Carried over from **old PR 10014** by `WebIdentity1` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10014`, 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. > `WebIdentity1`: 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-7117015911 ### What and why The generated Wine launcher uses `readlink -f` to find its directory, and `cd` yields 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 on `main` a8b7ddbd5. 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: - Baseline `python3.12 -I tests/test_make_game_platform.py`: 3 failures of 46. - Head `python3.12 -I tests/test_make_game_platform.py`: 46/46 pass. - Related suites 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), and `test_make_game_dry_run.py` (24). - `python3.12 -I scripts/check_no_game_data.py tests/test_make_game_platform.py`, `compileall`, and `git diff --check` pass. AI-assisted: yes.
aslan2142 commented 2026-12-01 11:38:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:38:45Z.


Closing as already landed on main: tests/test_make_game_platform.py:250-296 on main already compares os.path.realpath() physical paths for self.game, self.out, self.root, and moved. (AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7309927527 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/284#issuecomment-7309927527). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:38:45Z. --- Closing as already landed on main: tests/test_make_game_platform.py:250-296 on main already compares os.path.realpath() physical paths for self.game, self.out, self.root, and moved. *(AI-assisted review.)*

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!284
No description provided.