Skip to content

Commit

Permalink
HDDS-10080. Let junit.sh fail if no tests were matched in repeated run (
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored Jan 22, 2024
1 parent 27c1f9c commit 4195ef5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hadoop-ozone/dev-support/checks/junit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ for i in $(seq 1 ${ITERATIONS}); do
fi

if [[ ${ITERATIONS} -gt 1 ]]; then
if ! grep -q "Tests run: [^0]" "${REPORT_DIR}/output.log"; then
echo "No tests were run" >> "${REPORT_DIR}/summary.txt"
irc=1
FAIL_FAST=true
fi

REPORT_DIR="${original_report_dir}"
echo "Iteration ${i} exit code: ${irc}" | tee -a "${REPORT_FILE}"
fi
Expand Down

0 comments on commit 4195ef5

Please sign in to comment.