Skip to content

Commit

Permalink
test: exclude some logs from Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-biel committed Sep 16, 2023
1 parent 410d2c6 commit 04935d4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/acceptance_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ fn sanitize_lines(s: String) -> String {
let mut s = s
.lines()
.filter(|line| {
line.starts_with("test")
|| line.contains("panicked at")
|| line.starts_with("error:")
|| line.starts_with("error[")
(line.starts_with("test") // For general test output
|| line.contains("panicked at") // For panic messages
|| line.starts_with("error:") // For validating red paths
|| line.starts_with("error[")) // For validating red paths
&& !line.contains("process didn't exit successfully") // for Windows
})
.map(|line| line.replace('\\', "/"))
.map(|line| line.replace(".exe", ""))
Expand Down

0 comments on commit 04935d4

Please sign in to comment.