test: compare Wine launcher physical paths #284

Open
github-bot wants to merge 1 commit from github-bot/gh-284 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:59 UTC · original
ubiquitarianism:old-pr/10014 → main · +7 −3 · 1 files · 1 commits · draft

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.

**@⁠Andretuta** on GitHub · 2026-11-24 02:59 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/284) `ubiquitarianism:old-pr/10014` → `main` · +7 −3 · 1 files · 1 commits · draft > 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:51:56 +00:00
This pull request has changes conflicting with the target branch.
  • tests/test_make_game_platform.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/284/head:github-bot/gh-284'
git switch 'github-bot/gh-284'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-284'
git switch 'github-bot/gh-284'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-284'
git switch 'github-bot/gh-284'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-284'
git switch 'main'
git merge --squash 'github-bot/gh-284'
git switch 'main'
git merge --ff-only 'github-bot/gh-284'
git switch 'main'
git merge 'github-bot/gh-284'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.