@@ -2001,7 +2001,7 @@ fn test_no_harness() {
2001
2001
. file ( "foo.rs" , "fn main() {}" )
2002
2002
. build ( ) ;
2003
2003
2004
- p. cargo ( "test -- --nocapture " )
2004
+ p. cargo ( "test -- --no-capture " )
2005
2005
. with_stderr_data ( str![ [ r#"
2006
2006
[COMPILING] foo v0.0.1 ([ROOT]/foo)
2007
2007
[FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -3901,7 +3901,7 @@ fn cargo_test_env() {
3901
3901
. unwrap( )
3902
3902
. replace( rustc_host, "[HOST_TARGET]" )
3903
3903
) ;
3904
- p. cargo ( "test --lib -- --nocapture " )
3904
+ p. cargo ( "test --lib -- --no-capture " )
3905
3905
. with_stderr_contains ( cargo)
3906
3906
. with_stdout_data ( str![ [ r#"
3907
3907
...
@@ -3923,7 +3923,7 @@ test env_test ... ok
3923
3923
. replace( p. root( ) . parent( ) . unwrap( ) . to_str( ) . unwrap( ) , "[ROOT]" )
3924
3924
) ;
3925
3925
p. process ( other_cargo_path)
3926
- . args ( & [ "test" , "--lib" , "--" , "--nocapture " ] )
3926
+ . args ( & [ "test" , "--lib" , "--" , "--no-capture " ] )
3927
3927
. with_stderr_contains ( stderr_other_cargo)
3928
3928
. with_stdout_data ( str![ [ r#"
3929
3929
...
@@ -5398,20 +5398,20 @@ this is a normal error
5398
5398
5399
5399
Caused by:
5400
5400
process didn't exit successfully: `[ROOT]/foo/target/debug/deps/t2-[HASH][EXE]` ([EXIT_STATUS]: 4)
5401
- [NOTE] test exited abnormally; to see the full output pass --nocapture to the harness.
5401
+ [NOTE] test exited abnormally; to see the full output pass --no-capture to the harness.
5402
5402
5403
5403
"# ] ] )
5404
5404
. with_status ( 4 )
5405
5405
. run ( ) ;
5406
5406
5407
- p. cargo ( "test --test t2 -- --nocapture " )
5407
+ p. cargo ( "test --test t2 -- --no-capture " )
5408
5408
. with_stderr_data ( str![ [ r#"
5409
5409
[FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
5410
5410
[RUNNING] tests/t2.rs (target/debug/deps/t2-[HASH][EXE])
5411
5411
[ERROR] test failed, to rerun pass `--test t2`
5412
5412
5413
5413
Caused by:
5414
- process didn't exit successfully: `[ROOT]/foo/target/debug/deps/t2-[HASH][EXE] --nocapture ` ([EXIT_STATUS]: 4)
5414
+ process didn't exit successfully: `[ROOT]/foo/target/debug/deps/t2-[HASH][EXE] --no-capture ` ([EXIT_STATUS]: 4)
5415
5415
5416
5416
"# ] ] )
5417
5417
. with_status ( 4 )
@@ -5428,7 +5428,7 @@ Caused by:
5428
5428
5429
5429
Caused by:
5430
5430
process didn't exit successfully: `[ROOT]/foo/target/debug/deps/t2-[HASH][EXE]` ([EXIT_STATUS]: 4)
5431
- [NOTE] test exited abnormally; to see the full output pass --nocapture to the harness.
5431
+ [NOTE] test exited abnormally; to see the full output pass --no-capture to the harness.
5432
5432
[ERROR] 2 targets failed:
5433
5433
`--test t1`
5434
5434
`--test t2`
@@ -5437,15 +5437,15 @@ Caused by:
5437
5437
. with_status ( 101 )
5438
5438
. run ( ) ;
5439
5439
5440
- p. cargo ( "test --no-fail-fast -- --nocapture " )
5440
+ p. cargo ( "test --no-fail-fast -- --no-capture " )
5441
5441
. with_stderr_does_not_contain (
5442
- "test exited abnormally; to see the full output pass --nocapture to the harness." ,
5442
+ "test exited abnormally; to see the full output pass --no-capture to the harness." ,
5443
5443
)
5444
5444
. with_stderr_data ( str![ [ r#"
5445
5445
[..]thread [..]panicked [..] tests/t1.rs[..]
5446
5446
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5447
5447
Caused by:
5448
- process didn't exit successfully: `[ROOT]/foo/target/debug/deps/t2-[HASH][EXE] --nocapture ` ([EXIT_STATUS]: 4)
5448
+ process didn't exit successfully: `[ROOT]/foo/target/debug/deps/t2-[HASH][EXE] --no-capture ` ([EXIT_STATUS]: 4)
5449
5449
...
5450
5450
"# ] ] . unordered ( ) )
5451
5451
. with_status ( 101 )
@@ -5513,6 +5513,6 @@ fn cargo_test_set_out_dir_env_var() {
5513
5513
. build ( ) ;
5514
5514
5515
5515
p. cargo ( "test" ) . run ( ) ;
5516
- p. cargo ( "test --package foo --test case -- tests::test_add --exact --nocapture " )
5516
+ p. cargo ( "test --package foo --test case -- tests::test_add --exact --no-capture " )
5517
5517
. run ( ) ;
5518
5518
}
0 commit comments