Skip to content

Commit 8f528b0

Browse files
committed
fixes
1 parent 827798d commit 8f528b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hack/ci-e2e-lib.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,19 @@ kind::prepullImage () {
215215
junit::createJunitReportE2Esh() {
216216
failure="$1"
217217
output_file="$2"
218+
timestamp="$(date -u +%Y-%m-%dT%H:%M:%S)"
219+
220+
# Set variables to use for a successful run.
218221
status="passed"
219222
succeeded="true"
220223
body="<system-out>hack/e2e.sh script succeeded</system-out>"
224+
225+
# Change variables to use for a failed run.
221226
if [[ "$failure" != 0 ]]; then
222227
status="failed"
223228
succeeded="false"
224229
body="$(junit::createJunitReportE2EshFailureBody "${3}")"
225230
fi
226-
timestamp="$(date -u +%Y-%m-%dT%H:%M:%S)"
227231

228232
# Write header
229233
cat > "$output_file" << EOF

0 commit comments

Comments
 (0)