Merge pull request #1294 from dtolnay-contrib/logcolor

Turn off cargo colors during log level test
master
Jesper Håkansson 2 years ago committed by GitHub
commit f4f90a0807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tests/all/utils/fixture.rs

@ -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
}

Loading…
Cancel
Save