about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2024-04-09 11:01:16 +0100
committerDavid Wood <david@davidtw.co>2024-04-09 11:01:16 +0100
commit8d251c215e5cbcc6b889c07278fe143ebd4d39de (patch)
tree5a39b141254ac11f1e1a67fb5f0329372ce54c73
parent86b603cd792b3f6172ba4f676d7b586c1af7630a (diff)
downloadrust-8d251c215e5cbcc6b889c07278fe143ebd4d39de.tar.gz
rust-8d251c215e5cbcc6b889c07278fe143ebd4d39de.zip
compiletest: unset `RUSTC_LOG_COLOR`
If this leaks in from the environment then it can make tests fail when
they deliberately trigger `WARN` or `ERROR` logging.

Signed-off-by: David Wood <david@davidtw.co>
-rw-r--r--src/tools/compiletest/src/header.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs
index e414bc384f1..626841cb1bd 100644
--- a/src/tools/compiletest/src/header.rs
+++ b/src/tools/compiletest/src/header.rs
@@ -266,7 +266,7 @@ impl TestProps {
             aux_crates: vec![],
             revisions: vec![],
             rustc_env: vec![("RUSTC_ICE".to_string(), "0".to_string())],
-            unset_rustc_env: vec![],
+            unset_rustc_env: vec![("RUSTC_LOG_COLOR".to_string())],
             exec_env: vec![],
             unset_exec_env: vec![],
             build_aux_docs: false,