Skip to content

Commit 3b9ca2c

Browse files
authored
Rollup merge of #75975 - matklad:snapshot-tests, r=Mark-Simulacrum
Allow --bess ing expect-tests in tools I haven't tried this, but I think this should do the trick, as `RustdocCrate` is a special step in bootstrap, which uses `tool_caro` r? @ghost
2 parents 9225aab + e6a2c82 commit 3b9ca2c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/bootstrap/builder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,11 @@ impl<'a> Builder<'a> {
10791079
},
10801080
);
10811081

1082+
if self.config.cmd.bless() {
1083+
// Bless `expect!` tests.
1084+
cargo.env("UPDATE_EXPECT", "1");
1085+
}
1086+
10821087
if !mode.is_tool() {
10831088
cargo.env("RUSTC_FORCE_UNSTABLE", "1");
10841089
}

src/bootstrap/test.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1754,11 +1754,6 @@ impl Step for Crate {
17541754
cargo.arg("--quiet");
17551755
}
17561756

1757-
if builder.config.cmd.bless() {
1758-
// Bless `expect!` tests.
1759-
cargo.env("UPDATE_EXPECT", "1");
1760-
}
1761-
17621757
if target.contains("emscripten") {
17631758
cargo.env(
17641759
format!("CARGO_TARGET_{}_RUNNER", envify(&target.triple)),

0 commit comments

Comments
 (0)