Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit e52e592

Browse files
committed
Fix cargo test
1 parent 47d1535 commit e52e592

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/executable.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ mod cargo {
2424
let output = ExecutableRunner::new(Cargo)
2525
.with_args(["rustc", "-q", "--unknown-flag"])
2626
.with_cwd("tests/fixtures/sample-crate")
27+
.with_env("CARGO_TERM_COLOR", "never")
2728
.run();
2829

2930
match output.unwrap_err().kind() {
@@ -35,8 +36,6 @@ mod cargo {
3536
assert_eq!(command, "cargo");
3637
assert_eq!(*code, 1);
3738

38-
println!("{stderr}");
39-
4039
assert!(stderr.contains("argument '--unknown-flag'"));
4140
}
4241

0 commit comments

Comments
 (0)