Skip to content

Commit

Permalink
Rollup merge of #75975 - matklad:snapshot-tests, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dylan-DPC authored Aug 29, 2020
2 parents 9225aab + e6a2c82 commit 3b9ca2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,11 @@ impl<'a> Builder<'a> {
},
);

if self.config.cmd.bless() {
// Bless `expect!` tests.
cargo.env("UPDATE_EXPECT", "1");
}

if !mode.is_tool() {
cargo.env("RUSTC_FORCE_UNSTABLE", "1");
}
Expand Down
5 changes: 0 additions & 5 deletions src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1754,11 +1754,6 @@ impl Step for Crate {
cargo.arg("--quiet");
}

if builder.config.cmd.bless() {
// Bless `expect!` tests.
cargo.env("UPDATE_EXPECT", "1");
}

if target.contains("emscripten") {
cargo.env(
format!("CARGO_TARGET_{}_RUNNER", envify(&target.triple)),
Expand Down

0 comments on commit 3b9ca2c

Please sign in to comment.