@@ -853,7 +853,18 @@ fn publish_with_select_features() {
853
853
854
854
p. cargo ( "publish --features required" )
855
855
. replace_crates_io ( registry. index_url ( ) )
856
- . with_stderr_contains ( "[UPLOADING] foo v0.0.1 ([CWD])" )
856
+ . with_stderr (
857
+ "\
858
+ [..]
859
+ [..]
860
+ [..]
861
+ [..]
862
+ [VERIFYING] foo v0.0.1 ([CWD])
863
+ [..]
864
+ [..]
865
+ [UPLOADING] foo v0.0.1 ([CWD])
866
+ " ,
867
+ )
857
868
. run ( ) ;
858
869
}
859
870
@@ -887,7 +898,18 @@ fn publish_with_all_features() {
887
898
888
899
p. cargo ( "publish --all-features" )
889
900
. replace_crates_io ( registry. index_url ( ) )
890
- . with_stderr_contains ( "[UPLOADING] foo v0.0.1 ([CWD])" )
901
+ . with_stderr (
902
+ "\
903
+ [..]
904
+ [..]
905
+ [..]
906
+ [..]
907
+ [VERIFYING] foo v0.0.1 ([CWD])
908
+ [..]
909
+ [..]
910
+ [UPLOADING] foo v0.0.1 ([CWD])
911
+ " ,
912
+ )
891
913
. run ( ) ;
892
914
}
893
915
@@ -1047,7 +1069,19 @@ fn publish_checks_for_token_before_verify() {
1047
1069
// Assert package verified successfully on dry run
1048
1070
p. cargo ( "publish --dry-run" )
1049
1071
. replace_crates_io ( registry. index_url ( ) )
1050
- . with_stderr_contains ( "[VERIFYING] foo v0.0.1 ([CWD])" )
1072
+ . with_stderr (
1073
+ "\
1074
+ [..]
1075
+ [..]
1076
+ [..]
1077
+ [..]
1078
+ [VERIFYING] foo v0.0.1 ([CWD])
1079
+ [..]
1080
+ [..]
1081
+ [UPLOADING] foo v0.0.1 [..]
1082
+ [WARNING] aborting upload due to dry run
1083
+ " ,
1084
+ )
1051
1085
. run ( ) ;
1052
1086
}
1053
1087
@@ -1334,9 +1368,14 @@ fn credentials_ambiguous_filename() {
1334
1368
1335
1369
p. cargo ( "publish --no-verify" )
1336
1370
. replace_crates_io ( registry. index_url ( ) )
1337
- . with_stderr_contains (
1371
+ . with_stderr (
1338
1372
"\
1339
1373
[WARNING] Both `[..]/credentials` and `[..]/credentials.toml` exist. Using `[..]/credentials`
1374
+ [..]
1375
+ [..]
1376
+ [..]
1377
+ [..]
1378
+ [UPLOADING] foo v0.0.1 [..]
1340
1379
" ,
1341
1380
)
1342
1381
. run ( ) ;
0 commit comments