From 7d08486ef06cf7ef96ccc7ee4dd332c1065949fe Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 8 Jun 2023 00:00:15 -0700 Subject: [PATCH] Turn off cargo colors during log level test --- tests/all/utils/fixture.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/all/utils/fixture.rs b/tests/all/utils/fixture.rs index 13f9e79..188a460 100644 --- a/tests/all/utils/fixture.rs +++ b/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 }