mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #320] test_guest_scene_reference: compare the resolved loader path #371
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#371
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/320
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10055📝 Commits (1)
43b7df1test_guest_scene_reference: compare the resolved loader path📊 Changes
1 file changed (+52 additions, -3 deletions)
View changed files
📝
tests/test_guest_scene_reference.py(+52 -3)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Re-lands the fix from the closed
#8514(6fa2c8cac) on currentmain, wheretests/test_guest_scene_reference.py::test_launch_failure_preserves_run_record_and_logsstill fails:Session.rungets resolved paths (scripts/run_guest_scene.py:341), and macOS reaches the temp directory through/var, a symlink to/private/var. The test compared the record to the unresolved spelling.Coordination claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117112264
What changed
record["cmd"][loader_index]tostr(bad_loader.resolve()).Session.runbuilds[wine, *wine_args, loader, …], socmd[0]is the wine path — comparing it would leave the loader's resolve unfalsifiable (YordiLorenzo's finding on#8514).loader_indexis computed from the wine args that main now supports, and theircmd[1:3]assertion is kept.str(report.resolve()), for a junctioned or symlinked--out.test_launch_failure_records_the_resolved_launcheruses a symlinked root, so the contract is pinned on hosts where the temp directory is not already a symlink (skipped where symlinks cannot be created).Tested
macOS 27.2.1, Apple M3 Pro, CPython 3.15.2, synthetic inputs, no game files:
python -I tests/test_guest_scene_reference.py→ 7 tests OK, and 7 OK again with a symlinkedTMPDIR.args.loaderleft unresolved atrun_guest_scene.py:341: 2 tests fail (test_launch_failure_preserves_run_record_and_logs,test_launch_failure_records_the_resolved_launcher).python -m compileall -q make_game.py tools tests,python -I scripts/check_no_game_data.py tests/test_guest_scene_reference.py,git diff --check: clean.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.