test(tools): isolate overlap encoding tests from the working directory #10836
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10836"
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?
Imported from boykopovar/AnyPS5. Originally posted by TurboTheTurtle on 2026-10-25T03:44:13Z.
What
Make the PR-overlap encoding tests work when CMake builds outside the Git checkout. Mock repository-root discovery alongside command output and isolate its cache, while retaining the real subprocess encoding checks and temporary-repository integration test.
Tested
macOS 27.0.1 arm64, AppleClang 21, Python 3.14.7: all 254 relinker-only CTests pass. The unchanged-base encoding suite fails outside the checkout; the fixed suite passes all 11 tests there, including from a Unicode-named directory. Conventions check passes. Linux and Windows host runs were not performed.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T03:46:00Z.
Review: APPROVED
Reviewed head . The test now mocks repository-root discovery and clears the cached root for each test context, keeping the subprocess output/encoding checks intact. I ran from a directory outside the checkout; all 11 tests passed. The conventions, intake, and labels checks pass. I found no issue in this focused test-only change.