Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Nov 8, 2022
1 parent 3c40d61 commit 71e4dbd
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions tests/testsuite/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,15 @@ fn update_precise_without_package() {
Package::new("serde", "0.3.0").publish();

p.cargo("update --precise 0.3.0")
.with_status(1)
.with_stderr(
"\
[WARNING] precise is only supported with \"--package <SPEC>\", this will become a hard error in a future release.
[UPDATING] `[..]` index
[UPDATING] serde v0.2.0 -> v0.2.1
[ERROR] The following required arguments were not provided:
--package [<SPEC>]
Usage: cargo[EXE] update --package [<SPEC>] --precise <PRECISE>
For more information try '--help'
",
)
.run();
Expand Down Expand Up @@ -525,11 +529,15 @@ fn update_aggressive_without_package() {
Package::new("serde", "0.2.1").publish();

p.cargo("update --aggressive")
.with_status(1)
.with_stderr(
"\
[WARNING] aggressive is only supported with \"--package <SPEC>\", this will become a hard error in a future release.
[UPDATING] `[..]` index
[UPDATING] serde v0.2.0 -> v0.2.1
[ERROR] The following required arguments were not provided:
--package [<SPEC>]
Usage: cargo[EXE] update --package [<SPEC>] --aggressive
For more information try '--help'
",
)
.run();
Expand Down

0 comments on commit 71e4dbd

Please sign in to comment.