From 04935d4e320c3aef55bd4ffc71348cae25b5ce39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Biel?= Date: Sun, 17 Sep 2023 02:10:02 +0300 Subject: [PATCH] test: exclude some logs from Windows tests --- tests/acceptance_tests.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/acceptance_tests.rs b/tests/acceptance_tests.rs index 816ccd4..8b5726f 100644 --- a/tests/acceptance_tests.rs +++ b/tests/acceptance_tests.rs @@ -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", ""))