Skip to content

Commit

Permalink
Don't consider panic fixes as "new failures"
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed May 29, 2021
1 parent e7ffe7f commit 9152734
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boa_tester/src/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,14 @@ fn compute_result_diff(
| (TestOutcomeResult::Failed, TestOutcomeResult::Failed)
| (TestOutcomeResult::Panic, TestOutcomeResult::Panic) => {}

(TestOutcomeResult::Panic, TestOutcomeResult::Failed) => {
final_diff.panic_fixes.push(test_name)
}

(_, TestOutcomeResult::Passed) => final_diff.fixed.push(test_name),
(_, TestOutcomeResult::Failed) => final_diff.broken.push(test_name),
(_, TestOutcomeResult::Panic) => final_diff.new_panics.push(test_name),
(TestOutcomeResult::Panic, _) => final_diff.panic_fixes.push(test_name),

_ => {}
}
}
Expand Down

0 comments on commit 9152734

Please sign in to comment.