This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 4195ef57a3 HDDS-10080. Let junit.sh fail if no tests were matched in
repeated run (#6036)
4195ef57a3 is described below
commit 4195ef57a3a29aab3a79747147d0d73dc63c34af
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Jan 22 09:30:35 2024 +0100
HDDS-10080. Let junit.sh fail if no tests were matched in repeated run
(#6036)
---
hadoop-ozone/dev-support/checks/junit.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hadoop-ozone/dev-support/checks/junit.sh
b/hadoop-ozone/dev-support/checks/junit.sh
index 417ae35e5e..768a1f32a3 100755
--- a/hadoop-ozone/dev-support/checks/junit.sh
+++ b/hadoop-ozone/dev-support/checks/junit.sh
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]