mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #96] [CLOSED] tests: give the drive-root cases the version manifest they are judged against #148
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#148
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/96
Author: @wavehs
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:tests-win-drive-root-manifest📝 Commits (1)
45edc68tests: give the drive-root cases the version manifest they are judged against📊 Changes
1 file changed (+20 additions, -17 deletions)
View changed files
📝
tests/test_make_game_paths.py(+20 -17)📄 Description
Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository's issue index (#18) has no entry for it. No open pull request touches this file.
Depends on: none.
What and why
The Windows
checkjob reports four errors intests/test_make_game_paths.py, all the same:main()no longer lists the drive root to learn the dump's top-level entries; it takes them from the version manifestcheck()returns (expected_exeandfiles), so an unrelated folder on the drive cannot make the rerun look unsafe. The two drive-root tests still patchedos.listdir, which nothing reads any more, and theircheck()mock returned{}.run_build()now takes the manifest for the cases that need one, and the two tests pass one with the entries they mean (Content, andMountedContentfor the junction case). Theos.listdirpatches are gone, and with them the two orderings intest_drive_root_checks_entries_on_each_volume, which existed to vary a listing the code no longer reads; the two protected targets (the folder on the dump's own volume, and the one a junction reaches on another) are still both checked.Tested
main@9ec34cdff, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files. Both cases skip on a non-Windows host, so the drive-root branch was exercised directly:/splits as a drive root underos.path.splitdrivehere too, which reaches the same code with POSIX paths.check()mockContentrc=0, preflight and runtime ran/Content/out)Contentrc=1, "must be outside the game folder"Contentrc=1MountedContent→/mnt/PackageContent+MountedContent,realpathmockedrc=1for both protected targets,rc=0for an independent folder{}KeyError: 'expected_exe', the CI tracebackpython -I tests/test_make_game_paths.py:OK (skipped=2), before and after.compileallclean,check_no_game_data.pyclean. Not run on Windows itself, and not run: any GPU test.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (Not applicable: test-only.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.