fix(cli): test parsing on windows

This commit is contained in:
Amaan Qureshi 2024-04-12 18:19:10 -04:00
parent 285257998c
commit 9ba8f6dfe6

View file

@ -525,11 +525,11 @@ fn parse_test_content(name: String, content: &str, file_path: Option<PathBuf>) -
let mut test_name = String::new();
let mut seen_marker = false;
for line in test_name_and_markers
.split(|&c| c == b'\n')
for line in str::from_utf8(test_name_and_markers)
.unwrap()
.lines()
.filter(|s| !s.is_empty())
{
let line = str::from_utf8(line).unwrap();
match line.split('(').next().unwrap() {
":skip" => (seen_marker, skip) = (true, true),
":platform" => {