WIP: test: compare Wine launcher physical paths #284

Closed
leonida/mandy
Andretuta wants to merge 0 commits from old-pr/10014 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Andretuta commented 2026-11-24 02:59:13 +00:00

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.

> 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

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.)

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.)*
Sign in to join this conversation.
No description provided.