[PR #1292] tests/test_guest_scene_reference: compare resolved loader path at loader index (OLD-10055) #1323

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1292
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-10055-guest-scene-loader-path


📝 Commits (1)

  • 46ae994 test_guest_scene_reference: compare the resolved loader path

📊 Changes

1 file changed (+49 additions, -4 deletions)

View changed files

📝 tests/test_guest_scene_reference.py (+49 -4)

📄 Description

Claimed in the coordination issue as: OLD-10055 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144775375)

What and why

Carries forward old-pr/10055 (draft #320, original commit author wavehs preserved; indexed in #17), rebased cleanly onto current main (6261ca916) while preserving main's errors="replace" decode for localized Windows launch errors.

Fixes tests/test_guest_scene_reference.py:

  • Uses a separate --wine stub on non-Windows hosts and asserts record["cmd"][loader_index] against str(bad_loader.resolve()) at the loader's actual command index rather than comparing cmd[0] (which is the wine path when --wine is used).
  • Adds test_launch_failure_records_the_resolved_launcher, pinning resolved launcher path recording through a symlinked root (cleanly skipped on Windows without symlink privileges).

Tested

  • python -I tests/test_guest_scene_reference.py -v: 7 tests, OK (1 skipped: Windows symlink privilege).
  • python -I scripts/check_no_game_data.py tests/test_guest_scene_reference.py: exit 0 (no game data).

GPUs tested: n/a (Python stdlib unit tests on Windows 11 Pro 64-bit, Python 3.12.10)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • 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. (n/a — unit test fix)

🔄 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/1292 **Author:** [@ambroseautomation](https://github.com/ambroseautomation) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-10055-guest-scene-loader-path` --- ### 📝 Commits (1) - [`46ae994`](https://github.com/ubiquitarianism/leonida/commit/46ae994b1e30910dc2b77178855601d121caa063) test_guest_scene_reference: compare the resolved loader path ### 📊 Changes **1 file changed** (+49 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_guest_scene_reference.py` (+49 -4) </details> ### 📄 Description Claimed in the coordination issue as: OLD-10055 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144775375) ### What and why Carries forward `old-pr/10055` (draft #320, original commit author `wavehs` preserved; indexed in #17), rebased cleanly onto current `main` (`6261ca916`) while preserving `main`'s `errors="replace"` decode for localized Windows launch errors. Fixes `tests/test_guest_scene_reference.py`: - Uses a separate `--wine` stub on non-Windows hosts and asserts `record["cmd"][loader_index]` against `str(bad_loader.resolve())` at the loader's actual command index rather than comparing `cmd[0]` (which is the wine path when `--wine` is used). - Adds `test_launch_failure_records_the_resolved_launcher`, pinning resolved launcher path recording through a symlinked root (cleanly skipped on Windows without symlink privileges). ### Tested - `python -I tests/test_guest_scene_reference.py -v`: 7 tests, OK (1 skipped: Windows symlink privilege). - `python -I scripts/check_no_game_data.py tests/test_guest_scene_reference.py`: exit 0 (no game data). GPUs tested: n/a (Python stdlib unit tests on Windows 11 Pro 64-bit, Python 3.12.10) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [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. (n/a — unit test fix) --- <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#1323
No description provided.