Skip to content

Commit

Permalink
Update test properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall-mcmullen committed Oct 28, 2024
1 parent 7f11257 commit aa7e8bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions share/etest/results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ create_status_json()
"numTestsRunning": ${NUM_TESTS_RUNNING},
"numTestsExecuted": ${NUM_TESTS_EXECUTED},
"numTestsFailed": ${NUM_TESTS_FAILED},
:qa
"numTestsFlaky": ${NUM_TESTS_FLAKY},
"numTestsPassed": ${NUM_TESTS_PASSED},
"numTestsTotal": ${NUM_TESTS_TOTAL},
Expand Down
14 changes: 11 additions & 3 deletions share/etest/runners.sh
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,17 @@ __process_completed_jobs()
fi

# Update list of tests
array_add TESTS_PASSED "${tests_passed}"
array_add TESTS_FAILED "${tests_failed}"
array_add TESTS_FLAKY "${tests_flaky}"
if [[ -n "${tests_passed}" ]]; then
TESTS_PASSED[$suite]+="${tests_passed} "
fi

if [[ -n "${tests_failed}" ]]; then
TESTS_FAILED[$suite]+="${tests_failed} "
fi

if [[ -n "${tests_flaky}" ]]; then
TESTS_FLAKY[$suite]+="${tests_flaky} "
fi

# Update our final status json file with new results
create_status_json
Expand Down

0 comments on commit aa7e8bc

Please sign in to comment.