Skip to content

Commit

Permalink
Log when reaching max failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Flakebi committed Feb 22, 2021
1 parent a4a8566 commit b287760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,8 @@ pub async fn run_tests_parallel<'a>(

loop {
if options.max_failures != 0 && fails + crashes >= options.max_failures {
warn!(logger, "The number of failures is high, skip remaining jobs";
"max_failures" => options.max_failures, "failures" => fails + crashes);
// Do not start new jobs when we have our max number of failures
pending_jobs.clear();
}
Expand Down

0 comments on commit b287760

Please sign in to comment.