Skip to content

libtest: Allow passing --test-threads and --color multiple times, with later arguments overriding earlier - #161312

Open
joshtriplett wants to merge 2 commits into
rust-lang:mainfrom
joshtriplett:libtest-multi
Open

libtest: Allow passing --test-threads and --color multiple times, with later arguments overriding earlier#161312
joshtriplett wants to merge 2 commits into
rust-lang:mainfrom
joshtriplett:libtest-multi

Conversation

@joshtriplett

@joshtriplett joshtriplett commented Aug 18, 2026

Copy link
Copy Markdown
Member

Cargo would like to be able to pass these arguments, without breaking the ability for the user to do the same and override cargo's value. Currently, the option only allows one instance, failing if it sees multiple.

Accept --test-threads=N and --color=... multiple times, and have the last instance win.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 18, 2026
@rustbot

rustbot commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

r? @clarfonthey

rustbot has assigned @clarfonthey.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 12 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey, nia-e

@epage epage added the T-testing-devex Relevant to the testing devex team (testing DX), which will review and decide on the PR/issue. label Aug 18, 2026
@epage

epage commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Looks good from my side. Starting fcp for this as it is a one-way door.

@rfcbot fcp merge testing-devex

@rust-rfcbot

rust-rfcbot commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

@epage has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rust-rfcbot rust-rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Aug 18, 2026
Comment thread library/test/src/cli.rs Outdated
Comment thread library/test/src/cli.rs Outdated
Cargo would like to be able to pass `--test-threads=N`, without breaking
the ability for the user to do the same and override cargo's value.
Currently, the option only allows one instance, failing if it sees
multiple.

Accept `--test-threads=N` multiple times, and have the last instance win.
Cargo would like to be able to pass a `--color` option, without breaking
the ability for the user to do the same and override cargo's value.
Currently, the option only allows one instance, failing if it sees
multiple.

Accept `--color` multiple times, and have the last instance win.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-testing-devex Relevant to the testing devex team (testing DX), which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants