Skip to content

Commit

Permalink
ignore retries
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass committed Jul 10, 2023
1 parent 207ffdf commit 96a66d5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions crates/abq_cli/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ fn print_tests_for_runner(
.flatten();

let results = associated_test_results
.flat_map(|associated_test_results: AssociatedTestResults| associated_test_results.results);
.filter_map(|associated_test_results| {
// run number goes up for retries.
return if associated_test_results.run_number == 1 {
Some(associated_test_results.results)
} else {
None
};
})
.flatten();

let mut results_for_worker: Vec<TestResultSpec> = results
.filter(|test_result| test_result.source.runner == worker_runner)
Expand Down Expand Up @@ -1063,10 +1071,6 @@ mod test {
snapshot,
@r###"
test3
test1
test2
test1
test2
"###

);
Expand Down

0 comments on commit 96a66d5

Please sign in to comment.