Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tests/e2e/common-operator-integ-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,15 @@ if [ "${OLM}" != "true" ] && [ "${SKIP_DEPLOY}" != "true" ]; then
fi
fi

set +e
# Disable to avoid fail the test run and not generate the report.xml
# We need to catch the exit code to be able to generate the report
# shellcheck disable=SC2086
IMAGE="${HUB}/${IMAGE_BASE}:${TAG}" \
go run github.com/onsi/ginkgo/v2/ginkgo -tags e2e \
--timeout 60m --junit-report=report.xml ${GINKGO_FLAGS} "${WD}"/...
--timeout 60m --junit-report="${ARTIFACTS}/report.xml" ${GINKGO_FLAGS:-} "${WD}"/...
TEST_EXIT_CODE=$?
set -e

if [ "${OLM}" != "true" ] && [ "${SKIP_DEPLOY}" != "true" ]; then
if [ "${MULTICLUSTER}" == true ]; then
Expand All @@ -244,3 +249,6 @@ if [ "${OLM}" != "true" ] && [ "${SKIP_DEPLOY}" != "true" ]; then
fi
fi


echo "JUnit report: ${ARTIFACTS}/report.xml"
exit ${TEST_EXIT_CODE}