@@ -247,11 +247,10 @@ fn install_path() {
247
247
cargo_process ( "install --path" ) . arg ( p. root ( ) ) . run ( ) ;
248
248
assert_has_installed_exe ( cargo_home ( ) , "foo" ) ;
249
249
p. cargo ( "install --path ." )
250
- . with_status ( 101 )
251
250
. with_stderr (
252
251
"\
253
252
[INSTALLING] foo v0.0.1 [..]
254
- [ERROR] binary `foo[..]` already exists in destination as part of `foo v0.0.1 [..]`
253
+ binary `foo[..]` already exists in destination as part of `foo v0.0.1 [..]`
255
254
Add --force to overwrite
256
255
" ,
257
256
)
@@ -456,28 +455,6 @@ fn install_twice() {
456
455
457
456
cargo_process ( "install --path" ) . arg ( p. root ( ) ) . run ( ) ;
458
457
cargo_process ( "install --path" )
459
- . arg ( p. root ( ) )
460
- . with_status ( 101 )
461
- . with_stderr (
462
- "\
463
- [INSTALLING] foo v0.0.1 [..]
464
- [ERROR] binary `foo-bin1[..]` already exists in destination as part of `foo v0.0.1 ([..])`
465
- binary `foo-bin2[..]` already exists in destination as part of `foo v0.0.1 ([..])`
466
- Add --force to overwrite
467
- " ,
468
- )
469
- . run ( ) ;
470
- }
471
-
472
- #[ test]
473
- fn install_ensure ( ) {
474
- let p = project ( )
475
- . file ( "src/bin/foo-bin1.rs" , "fn main() {}" )
476
- . file ( "src/bin/foo-bin2.rs" , "fn main() {}" )
477
- . build ( ) ;
478
-
479
- cargo_process ( "install --ensure --path" ) . arg ( p. root ( ) ) . run ( ) ;
480
- cargo_process ( "install --ensure --path" )
481
458
. arg ( p. root ( ) )
482
459
. with_stderr (
483
460
"\
@@ -491,7 +468,7 @@ Add --force to overwrite
491
468
}
492
469
493
470
#[ test]
494
- fn install_ensure_force ( ) {
471
+ fn install_version_update ( ) {
495
472
let p = project ( )
496
473
. at ( "foo1" )
497
474
. file ( "Cargo.toml" , & basic_manifest ( "foo" , "0.1.0" ) )
@@ -514,7 +491,7 @@ foo v0.1.0 ([..]):
514
491
. file ( "src/main.rs" , "fn main() {}" )
515
492
. build ( ) ;
516
493
517
- cargo_process ( "install --ensure -- path" ) . arg ( p. root ( ) ) . run ( ) ;
494
+ cargo_process ( "install --path" ) . arg ( p. root ( ) ) . run ( ) ;
518
495
cargo_process ( "install --list" )
519
496
. with_stdout (
520
497
"\
0 commit comments