Skip to content

Commit

Permalink
compiletest: unset RUSTC_LOG_COLOR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davidtwco committed Apr 9, 2024
1 parent 86b603c commit 8d251c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8d251c2

Please sign in to comment.