File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
hadoop-ozone/dev-support/checks Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ grep -A1 'Crashed tests' "${REPORT_DIR}/output.log" \
6363cat " ${crashes} " >> " ${tempfile} "
6464
6565# Check for tests that started but were not finished
66+ timeouts=${REPORT_DIR} /timeouts.txt
6667if grep -q ' There was a timeout.*in the fork' " ${REPORT_DIR} /output.log" ; then
6768 diff -uw \
6869 <( grep -e ' Running org' " ${REPORT_DIR} /output.log" \
@@ -75,7 +76,8 @@ if grep -q 'There was a timeout.*in the fork' "${REPORT_DIR}/output.log"; then
7576 | sort -u -k2) \
7677 | grep ' ^- ' \
7778 | awk ' { print $3 }' \
78- >> " ${tempfile} "
79+ > " ${timeouts} "
80+ cat " ${timeouts} " >> " ${tempfile} "
7981fi
8082
8183sort -u " ${tempfile} " | tee " ${REPORT_DIR} /summary.txt"
@@ -118,5 +120,11 @@ if [[ -s "${crashes}" ]]; then
118120fi
119121rm -f " ${crashes} "
120122
123+ if [[ -s " ${timeouts} " ]]; then
124+ printf " # Fork Timeout\n\n" >> " $SUMMARY_FILE "
125+ cat " ${timeouts} " | sed ' s/^/ * /' >> " $SUMMARY_FILE "
126+ fi
127+ rm -f " ${timeouts} "
128+
121129# # generate counter
122130wc -l " $REPORT_DIR /summary.txt" | awk ' {print $1}' > " $REPORT_DIR /failures"
You can’t perform that action at this time.
0 commit comments