[PR #284] test: compare Wine launcher physical paths #335

Open
opened 2026-11-26 20:17:32 +01:00 by 4ld0 · 0 comments
Owner

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

  • 04fb785 test: 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

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/284 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/10014` --- ### 📝 Commits (1) - [`04fb785`](https://github.com/ubiquitarianism/leonida/commit/04fb785d3cbbad8dddf683accb95fb46b501fdfd) test: compare Wine launcher physical paths ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_make_game_platform.py` (+7 -3) </details> ### 📄 Description > 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#335
No description provided.