diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-08-27 13:12:40 +0200 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-08-29 13:06:03 +0200 |
| commit | e6a2c8292b146ff4c6199aa6a60d739105bb9a54 (patch) | |
| tree | 3a1ece50cc384dbcb2e4ef2ea8d613fe9c0ab346 /src | |
| parent | f7be59c593cd21640bf2c2a669c339383816be4f (diff) | |
| download | rust-e6a2c8292b146ff4c6199aa6a60d739105bb9a54.tar.gz rust-e6a2c8292b146ff4c6199aa6a60d739105bb9a54.zip | |
Allow --bess ing expect-tests in tools
See #75773 and #75775
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/builder.rs | 5 | ||||
| -rw-r--r-- | 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 @@ 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"); } 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 @@ 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)), |
