Skip to content

Commit 63f1ccc

Browse files
chrischdik8s-infra-cherrypick-robot
authored andcommitted
fixes
1 parent f3db1dc commit 63f1ccc

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
@@ -112,15 +112,14 @@ on_exit() {
112112
fi
113113

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

0 commit comments

Comments
 (0)