test: relax help text assertion by weihanglo · Pull Request #13488 · rust-lang/cargo

@weihanglo

When running test in rust-lang/rust via `./x test src/tool/cargo`,
there is no rustup integrated.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Feb 24, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 28, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 28, 2024

@epage epage mentioned this pull request

Sep 10, 2025

github-merge-queue bot pushed a commit that referenced this pull request

Sep 10, 2025
### What does this PR try to resolve?

#15928 removed the fix from #13488 which breaks rust-lang/rust. This
fixes that and makes the test less brittle for the future.

### How to test and review this PR?