Skip to content

Commit

Permalink
Merge pull request #1294 from dtolnay-contrib/logcolor
Browse files Browse the repository at this point in the history
Turn off cargo colors during log level test
  • Loading branch information
drager committed Jun 8, 2023
2 parents 6af9f22 + 7d08486 commit f4f90a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/all/utils/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ impl Fixture {
let mut cmd = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();
cmd.current_dir(&self.path);
cmd.env("WASM_PACK_CACHE", self.cache_dir());

// Some of the tests assume that Cargo's output does not contain colors.
cmd.env_remove("CARGO_TERM_COLOR");

cmd
}

Expand Down

0 comments on commit f4f90a0

Please sign in to comment.