Skip to content

Commit

Permalink
Fix another place NUM_TESTS_QUEUED can go to -1.
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall-mcmullen committed Oct 28, 2024
1 parent 31ba2dc commit 7f11257
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions share/etest/runners.sh
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ __process_completed_jobs()
increment NUM_TESTS_FAILED ${num_tests_failed}
increment NUM_TESTS_FLAKY ${num_tests_flaky}
NUM_TESTS_QUEUED=$(( NUM_TESTS_TOTAL - NUM_TESTS_EXECUTED - NUM_TESTS_RUNNING ))
if [[ ${NUM_TESTS_QUEUED} -lt 0 ]]; then
NUM_TESTS_QUEUED=0
fi

# Update list of tests
array_add TESTS_PASSED "${tests_passed}"
Expand Down

0 comments on commit 7f11257

Please sign in to comment.