Skip to content

Commit 2027438

Browse files
committed
Output junit report for tests/e2e/... E2E jobs
Signed-off-by: Connor Catlett <conncatl@amazon.com>
1 parent 9e4030d commit 2027438

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

hack/e2e/config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ set -euo pipefail
1818

1919
BASE_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
2020
TEST_DIR="${BASE_DIR}/csi-test-artifacts"
21+
# On Prow, $ARTIFACTS indicates where to put the artifacts for skylens upload
22+
REPORT_DIR="${ARTIFACTS:-${TEST_DIR}/artifacts}"
2123
mkdir -p "${TEST_DIR}"
2224
CLUSTER_FILE=${TEST_DIR}/${CLUSTER_NAME}.${CLUSTER_TYPE}.yaml
2325
KUBECONFIG=${KUBECONFIG:-"${TEST_DIR}/${CLUSTER_NAME}.${CLUSTER_TYPE}.kubeconfig"}

hack/e2e/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ else
152152
"${BIN}/ginkgo" -p -nodes="${GINKGO_PARALLEL}" -v \
153153
--focus="${GINKGO_FOCUS}" \
154154
--skip="${GINKGO_SKIP}" \
155+
--junit-report="${REPORT_DIR}/junit.xml" \
155156
"${TEST_PATH}" \
156157
-- \
157158
-kubeconfig="${KUBECONFIG}" \
158-
-report-dir="${TEST_DIR}/artifacts" \
159159
-gce-zone="${FIRST_ZONE}"
160160
TEST_PASSED=$?
161161
set -e

0 commit comments

Comments
 (0)