Skip to content

Commit 403dfbf

Browse files
committed
Fix tests on Windows
The name might be cargo.exe
1 parent b9b515c commit 403dfbf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/cli.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,14 @@ fn small_well_tested_mutants_with_cargo_arg_release() {
536536
println!("{}", baseline_log_path.display());
537537
let log_content = fs::read_to_string(&baseline_log_path).unwrap();
538538
println!("{}", log_content);
539-
assert!(log_content.contains("cargo build --tests --release"));
540-
assert!(log_content.contains("cargo test --release"));
539+
regex::Regex::new(r"cargo.* build --tests --release")
540+
.unwrap()
541+
.captures(&log_content)
542+
.unwrap();
543+
regex::Regex::new(r"cargo.* test --release")
544+
.unwrap()
545+
.captures(&log_content)
546+
.unwrap();
541547
}
542548

543549
#[test]

0 commit comments

Comments
 (0)