Skip to content

Commit

Permalink
Allow --bess ing expect-tests in tools
Browse files Browse the repository at this point in the history
See #75773 and #75775
  • Loading branch information
matklad committed Aug 29, 2020
1 parent f7be59c commit e6a2c82
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 e6a2c82

Please sign in to comment.