Skip to content

Commit

Permalink
ci, tests: fix ignore logic
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Sep 21, 2024
1 parent 0bb19f7 commit 206ace3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/vab_error_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,18 @@ fn sync_run(job TOMLTestJob) &TOMLTestJobResult {
if ignore_lines_starting_with.len > 0 {
mut filtered := []string{}
for line in found.split_into_lines() {
mut ignore := false
for ignore_string in ignore_lines_starting_with {
if !line.starts_with(ignore_string) {
filtered << line
} else {
println('ignoring line "${line}"')
if line.starts_with(ignore_string) {
ignore = true
break
}
}
if !ignore {
filtered << line
} else {
println('ignoring line "${line}"')
}
}
found = filtered.join('\n')
}
Expand Down

0 comments on commit 206ace3

Please sign in to comment.