Skip to content

Commit 7a42790

Browse files
committed
Assert fix::doesnt_rebuild_dependencies stderr fully
Gives more confidence.
1 parent 3db193e commit 7a42790

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/testsuite/fix.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,14 +1065,19 @@ fn doesnt_rebuild_dependencies() {
10651065
p.cargo("fix --allow-no-vcs -p foo")
10661066
.env("__CARGO_FIX_YOLO", "1")
10671067
.with_stdout("")
1068-
.with_stderr_contains("[CHECKING] bar v0.1.0 ([..])")
1069-
.with_stderr_contains("[CHECKING] foo v0.1.0 ([..])")
1068+
.with_stderr("\
1069+
[CHECKING] bar v0.1.0 ([..])
1070+
[CHECKING] foo v0.1.0 ([..])
1071+
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
1072+
")
10701073
.run();
10711074

10721075
p.cargo("fix --allow-no-vcs -p foo")
10731076
.env("__CARGO_FIX_YOLO", "1")
10741077
.with_stdout("")
1075-
.with_stderr_does_not_contain("[CHECKING] bar v0.1.0 ([..])")
1076-
.with_stderr_contains("[CHECKING] foo v0.1.0 ([..])")
1078+
.with_stderr("\
1079+
[CHECKING] foo v0.1.0 ([..])
1080+
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
1081+
")
10771082
.run();
10781083
}

0 commit comments

Comments
 (0)