[PR #9] [MERGED] tests: compare the Wine launcher's physical paths with realpath #65

Closed
opened 2026-11-26 20:16:41 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/9
Author: @wavehs
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: test-platform-realpath


📝 Commits (1)

  • 28c5b70 tests: compare the Wine launcher's physical paths with realpath

📊 Changes

1 file changed (+9 additions, -3 deletions)

View changed files

📝 tests/test_make_game_platform.py (+9 -3)

📄 Description

Claimed 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_paths runs the generated POSIX launcher and compares the paths the runtime sees. The launcher resolves its own path with readlink -f and lets cd settle 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:

AssertionError: Lists differ: ['/private/var/folders/...'] != ['/var/folders/...']

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:

tree tests/test_make_game_platform.py
main@30daa6958 FAILED (failures=3) — the --dry-run/--init path list, self.root, and the moved-port LEONIDA_SHADERS path
this commit Ran 46 tests ... OK

compileall clean, check_no_game_data.py clean. Not run: Windows, Linux, any GPU or game data.

AI-assisted: yes.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: no translator change.)

🔄 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/9 **Author:** [@wavehs](https://github.com/wavehs) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `test-platform-realpath` --- ### 📝 Commits (1) - [`28c5b70`](https://github.com/ubiquitarianism/leonida/commit/28c5b70b1b9935c242e6a5cd448ca095cd2e9457) tests: compare the Wine launcher's physical paths with realpath ### 📊 Changes **1 file changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_make_game_platform.py` (+9 -3) </details> ### 📄 Description Claimed 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_paths` runs the generated POSIX launcher and compares the paths the runtime sees. The launcher resolves its own path with `readlink -f` and lets `cd` settle 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: ``` AssertionError: Lists differ: ['/private/var/folders/...'] != ['/var/folders/...'] ``` 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: | tree | `tests/test_make_game_platform.py` | |---|---| | `main@30daa6958` | `FAILED (failures=3)` — the `--dry-run`/`--init` path list, `self.root`, and the moved-port `LEONIDA_SHADERS` path | | this commit | `Ran 46 tests ... OK` | `compileall` clean, `check_no_game_data.py` clean. Not run: Windows, Linux, any GPU or game data. AI-assisted: yes. ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: no translator change.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:16:41 +01:00
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#65
No description provided.