Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 3c082c7

Browse files
authored
Merge pull request #111 from killercup/strip-log-env-from-cargo-fix-tests
Overwrite RUST_LOG env var in cargo-fix tests
2 parents cd37ed0 + a8d0e3f commit 3c082c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cargo-fix/tests/all/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ impl<'a> ExpectCmd<'a> {
203203
new_path.extend(env::split_paths(&env::var_os("PATH").unwrap_or(Default::default())));
204204
cmd.env("PATH", env::join_paths(&new_path).unwrap());
205205

206+
// Don't output log stuff in tests, because it breaks our std{err,out} assertions
207+
cmd.env("RUST_LOG", "warn");
208+
206209
if !self.check_vcs {
207210
cmd.env("__CARGO_FIX_IGNORE_VCS", "true");
208211
}

0 commit comments

Comments
 (0)