From e6a2c8292b146ff4c6199aa6a60d739105bb9a54 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 27 Aug 2020 13:12:40 +0200 Subject: [PATCH] Allow --bess ing expect-tests in tools See #75773 and #75775 --- src/bootstrap/builder.rs | 5 +++++ src/bootstrap/test.rs | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 6446fa7550d..54eb2e99b8f 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -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"); } diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index afa72b5d58c..ac833a55d4c 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -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)),