Skip to content

Commit

Permalink
Merge pull request rust-lang#111 from killercup/strip-log-env-from-ca…
Browse files Browse the repository at this point in the history
…rgo-fix-tests

Overwrite RUST_LOG env var in cargo-fix tests
  • Loading branch information
alexcrichton authored May 18, 2018
2 parents cd37ed0 + a8d0e3f commit 3c082c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cargo-fix/tests/all/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ impl<'a> ExpectCmd<'a> {
new_path.extend(env::split_paths(&env::var_os("PATH").unwrap_or(Default::default())));
cmd.env("PATH", env::join_paths(&new_path).unwrap());

// Don't output log stuff in tests, because it breaks our std{err,out} assertions
cmd.env("RUST_LOG", "warn");

if !self.check_vcs {
cmd.env("__CARGO_FIX_IGNORE_VCS", "true");
}
Expand Down

0 comments on commit 3c082c7

Please sign in to comment.