Turn off cargo colors during log level test

master
David Tolnay 2 years ago
parent 6af9f22750
commit 7d08486ef0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
  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