Skip to content

Commit

Permalink
Remove CARGO_TERM_COLOR in ci.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Oct 1, 2024
1 parent fe22a69 commit 0b1102a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ sha2 = "0.10"
tempfile = "3.13"

[dev-dependencies]
ctor = "0.2"
regex = "1.11"

[lints.rust.unexpected_cfgs]
Expand Down
7 changes: 6 additions & 1 deletion tests/ci.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
use assert_cmd::assert::OutputAssertExt;
use regex::Regex;
use std::{fs::read_to_string, path::Path, process::Command};
use std::{env::remove_var, fs::read_to_string, path::Path, process::Command};
use tempfile::tempdir;

#[ctor::ctor]
fn initialize() {
remove_var("CARGO_TERM_COLOR");
}

#[test]
fn clippy() {
Command::new("cargo")
Expand Down

0 comments on commit 0b1102a

Please sign in to comment.