Skip to content

Commit

Permalink
test: matches suggestions from UnknownArgumentValueParser
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Aug 22, 2023
1 parent 629f326 commit b456bd2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions tests/testsuite/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1681,11 +1681,17 @@ fn cargo_bench_no_keep_going() {
p.cargo("bench --keep-going")
.with_stderr(
"\
error: unexpected argument `--keep-going` found
error: unexpected argument '--keep-going' found
tip: to run as many benchmarks as possible without failing fast, use `--no-fail-fast`",
tip: a similar argument exists: '--no-fail-fast'
tip: use `--no-fail-fast` to run as many tests as possible regardless of failure
Usage: cargo bench [OPTIONS] [BENCHNAME] [-- [args]...]
For more information, try '--help'.
",
)
.with_status(101)
.with_status(1)
.run();
}

Expand Down
12 changes: 9 additions & 3 deletions tests/testsuite/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4854,11 +4854,17 @@ fn cargo_test_no_keep_going() {
p.cargo("test --keep-going")
.with_stderr(
"\
error: unexpected argument `--keep-going` found
error: unexpected argument '--keep-going' found
tip: to run as many tests as possible without failing fast, use `--no-fail-fast`",
tip: a similar argument exists: '--no-fail-fast'
tip: use `--no-fail-fast` to run as many tests as possible regardless of failure
Usage: cargo test [OPTIONS] [TESTNAME] [-- [args]...]
For more information, try '--help'.
",
)
.with_status(101)
.with_status(1)
.run();
}

Expand Down

0 comments on commit b456bd2

Please sign in to comment.