File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments