Skip to content

Commit c658619

Browse files
committed
fixes
1 parent aeb1a37 commit c658619

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hack/e2e.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,14 @@ on_exit() {
108108
fi
109109

110110
# Create a junit file for running this script.
111-
112-
# Delete output file from this script because it contains a duplicate output
113-
if [[ $(find "${ORIGINAL_ARTIFACTS}" -maxdepth 1 -name 'junit\.*\.xmla' | wc -l) -gt 0 ]]; then
114-
# There are junit files in artifacts
111+
if [[ $(find "${ORIGINAL_ARTIFACTS}" -maxdepth 1 -name 'junit\.*\.xml' | wc -l) -gt 0 ]]; then
112+
# There are junit files in artifacts so the script succeeded.
115113
junit::createJunitReportE2Esh 0 "${ORIGINAL_ARTIFACTS}/junit.e2e-sh.xml"
116114
else
115+
# No junit files in artifacts so the script failed.
117116
junit::createJunitReportE2Esh 1 "${ORIGINAL_ARTIFACTS}/junit.e2e-sh.xml" "${ORIGINAL_ARTIFACTS}/${E2E_SH_LOG_FILE}"
118117
fi
119-
# Cleanup the additionally written log file, the same content will be in build-log.txt.
118+
# Always cleanup the additionally written log file used for the junit report, the same content will be in build-log.txt.
120119
rm "${ORIGINAL_ARTIFACTS}/${E2E_SH_LOG_FILE}"
121120
}
122121

0 commit comments

Comments
 (0)