Skip to content

Commit 71e4dbd

Browse files
committed
Update tests
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 3c40d61 commit 71e4dbd

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

tests/testsuite/update.rs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,15 @@ fn update_precise_without_package() {
453453
Package::new("serde", "0.3.0").publish();
454454

455455
p.cargo("update --precise 0.3.0")
456+
.with_status(1)
456457
.with_stderr(
457458
"\
458-
[WARNING] precise is only supported with \"--package <SPEC>\", this will become a hard error in a future release.
459-
[UPDATING] `[..]` index
460-
[UPDATING] serde v0.2.0 -> v0.2.1
459+
[ERROR] The following required arguments were not provided:
460+
--package [<SPEC>]
461+
462+
Usage: cargo[EXE] update --package [<SPEC>] --precise <PRECISE>
463+
464+
For more information try '--help'
461465
",
462466
)
463467
.run();
@@ -525,11 +529,15 @@ fn update_aggressive_without_package() {
525529
Package::new("serde", "0.2.1").publish();
526530

527531
p.cargo("update --aggressive")
532+
.with_status(1)
528533
.with_stderr(
529534
"\
530-
[WARNING] aggressive is only supported with \"--package <SPEC>\", this will become a hard error in a future release.
531-
[UPDATING] `[..]` index
532-
[UPDATING] serde v0.2.0 -> v0.2.1
535+
[ERROR] The following required arguments were not provided:
536+
--package [<SPEC>]
537+
538+
Usage: cargo[EXE] update --package [<SPEC>] --aggressive
539+
540+
For more information try '--help'
533541
",
534542
)
535543
.run();

0 commit comments

Comments
 (0)