Repository navigation
Allow test runner thread overrides - #2676
luckyteagirl wants to merge 1 commit into
Conversation
|
The real runner works on Windows PowerShell 5.1, and the bug it fixes depends on the Rust version: Rust 1.98.1's libtest rejects a second Windows 11 Pro 26300, Windows PowerShell 5.1.26100, RTX 3060,
Not tested: the whole workspace suite through the runner (only the AI use: Claude Code (Claude Opus 5.5) ran the checks and wrote this comment. |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR makes the same change. #1399 also touches the AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check |
scripts/test.ps1always added--test-threads=4. On Rust 1.99.0, libtest rejected a caller's second option before running tests; on Rust 1.100.0, duplicate options are accepted with the last value winning. The runner now gives callers a consistent override without passing duplicates.What is in it
RUST_TEST_THREADSforcargo testand restore the caller's environment afterward.--.Tested
--test-threads=Nand--test-threads Narguments with exit 101. Both explicit forms took precedence over the environment default.scripts/test-test-threads.tests.ps1andscripts/test-native-stderr.tests.ps1passed on PowerShell 5.1 and 7.6.9. The mock Cargo fixture checks argument forwarding, the four-thread default, and restoration for both an unset and a previously set environment variable.29e66d46passed with the patched runner on both shells for success, build failure, test failure, and missing Cargo.git diff --checkpassed.Regression run
Not tested
AI use