Allow --bess ing expect-tests in tools

See #75773 and #75775
This commit is contained in:
Aleksey Kladov 2020-08-27 13:12:40 +02:00
parent f7be59c593
commit e6a2c8292b
2 changed files with 5 additions and 5 deletions

View File

@ -1079,6 +1079,11 @@ pub fn cargo(
},
);
if self.config.cmd.bless() {
// Bless `expect!` tests.
cargo.env("UPDATE_EXPECT", "1");
}
if !mode.is_tool() {
cargo.env("RUSTC_FORCE_UNSTABLE", "1");
}

View File

@ -1754,11 +1754,6 @@ fn run(self, builder: &Builder<'_>) {
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)),