@@ -3481,13 +3481,11 @@ fn build_all_exclude() {
3481
3481
. build ( ) ;
3482
3482
3483
3483
p. cargo ( "build --workspace --exclude baz" )
3484
- . with_stderr_contains ( "[COMPILING] foo v0.1.0 [..]" )
3485
- . with_stderr_contains ( "[COMPILING] bar v0.1.0 [..]" )
3486
3484
. with_stderr_does_not_contain ( "[COMPILING] baz v0.1.0 [..]" )
3487
- . with_stderr (
3485
+ . with_stderr_unordered (
3488
3486
"\
3489
- [COMPILING] [..] v0.1.0 ([..])
3490
- [COMPILING] [..] v0.1.0 ([..])
3487
+ [COMPILING] foo v0.1.0 ([..])
3488
+ [COMPILING] bar v0.1.0 ([..])
3491
3489
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3492
3490
" ,
3493
3491
)
@@ -3515,13 +3513,11 @@ fn build_all_exclude_not_found() {
3515
3513
3516
3514
p. cargo ( "build --workspace --exclude baz" )
3517
3515
. with_stderr_does_not_contain ( "[COMPILING] baz v0.1.0 [..]" )
3518
- . with_stderr_contains ( "[COMPILING] foo v0.1.0 [..]" )
3519
- . with_stderr_contains ( "[COMPILING] bar v0.1.0 [..]" )
3520
- . with_stderr (
3516
+ . with_stderr_unordered (
3521
3517
"\
3522
3518
[WARNING] excluded package(s) `baz` not found in workspace [..]
3523
- [COMPILING] [..] v0.1.0 ([..])
3524
- [COMPILING] [..] v0.1.0 ([..])
3519
+ [COMPILING] foo v0.1.0 ([..])
3520
+ [COMPILING] bar v0.1.0 ([..])
3525
3521
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3526
3522
" ,
3527
3523
)
@@ -3551,12 +3547,10 @@ fn build_all_exclude_glob() {
3551
3547
3552
3548
p. cargo ( "build --workspace --exclude '*z'" )
3553
3549
. with_stderr_does_not_contain ( "[COMPILING] baz v0.1.0 [..]" )
3554
- . with_stderr_contains ( "[COMPILING] foo v0.1.0 [..]" )
3555
- . with_stderr_contains ( "[COMPILING] bar v0.1.0 [..]" )
3556
- . with_stderr (
3550
+ . with_stderr_unordered (
3557
3551
"\
3558
- [COMPILING] [..] v0.1.0 ([..])
3559
- [COMPILING] [..] v0.1.0 ([..])
3552
+ [COMPILING] foo v0.1.0 ([..])
3553
+ [COMPILING] bar v0.1.0 ([..])
3560
3554
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3561
3555
" ,
3562
3556
)
@@ -3669,12 +3663,12 @@ fn build_all_virtual_manifest() {
3669
3663
3670
3664
// The order in which bar and baz are built is not guaranteed
3671
3665
p. cargo ( "build --workspace" )
3672
- . with_stderr_contains ( "[..] Compiling baz v0.1.0 ([..])" )
3673
- . with_stderr_contains ( "[..] Compiling bar v0.1.0 ([..])" )
3674
- . with_stderr (
3675
- "[..] Compiling [..] v0.1.0 ([..])\n \
3676
- [..] Compiling [..] v0.1.0 ( [..]) \n \
3677
- [..] Finished dev [unoptimized + debuginfo] target(s) in [..] \n ",
3666
+ . with_stderr_unordered (
3667
+ " \
3668
+ [COMPILING] baz v0.1.0 ([..])
3669
+ [COMPILING] bar v0.1.0 ([..])
3670
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3671
+ " ,
3678
3672
)
3679
3673
. run ( ) ;
3680
3674
}
@@ -3697,12 +3691,12 @@ fn build_virtual_manifest_all_implied() {
3697
3691
3698
3692
// The order in which `bar` and `baz` are built is not guaranteed.
3699
3693
p. cargo ( "build" )
3700
- . with_stderr_contains ( "[..] Compiling baz v0.1.0 ([..])" )
3701
- . with_stderr_contains ( "[..] Compiling bar v0.1.0 ([..])" )
3702
- . with_stderr (
3703
- "[..] Compiling [..] v0.1.0 ([..])\n \
3704
- [..] Compiling [..] v0.1.0 ( [..]) \n \
3705
- [..] Finished dev [unoptimized + debuginfo] target(s) in [..] \n ",
3694
+ . with_stderr_unordered (
3695
+ " \
3696
+ [COMPILING] baz v0.1.0 ([..])
3697
+ [COMPILING] bar v0.1.0 ([..])
3698
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3699
+ " ,
3706
3700
)
3707
3701
. run ( ) ;
3708
3702
}
@@ -3832,12 +3826,12 @@ fn build_all_virtual_manifest_implicit_examples() {
3832
3826
3833
3827
// The order in which bar and baz are built is not guaranteed
3834
3828
p. cargo ( "build --workspace --examples" )
3835
- . with_stderr_contains ( "[..] Compiling baz v0.1.0 ([..])" )
3836
- . with_stderr_contains ( "[..] Compiling bar v0.1.0 ([..])" )
3837
- . with_stderr (
3838
- "[..] Compiling [..] v0.1.0 ([..])\n \
3839
- [..] Compiling [..] v0.1.0 ( [..]) \n \
3840
- [..] Finished dev [unoptimized + debuginfo] target(s) in [..] \n ",
3829
+ . with_stderr_unordered (
3830
+ " \
3831
+ [COMPILING] baz v0.1.0 ([..])
3832
+ [COMPILING] bar v0.1.0 ([..])
3833
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3834
+ " ,
3841
3835
)
3842
3836
. run ( ) ;
3843
3837
assert ! ( !p. bin( "a" ) . is_file( ) ) ;
0 commit comments