Skip to content

Commit

Permalink
Made test packages overrideable.
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed May 22, 2024
1 parent 36c94c6 commit d7714c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hack/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ if [ "$OPENSHIFT_CI" == "true" ] && [ -n "$ARTIFACT_DIR" ] && [ -d "$ARTIFACT_DI
GINKGO_ARGS="${GINKGO_ARGS} --junit-report=junit_machine_api_operator.xml --cover --coverprofile=test-unit-coverage.out --output-dir=${ARTIFACT_DIR}"
fi

TEST_PACKAGES=${TEST_PACKAGES:-$(go list -f "{{ .Dir }}" ./...)}

# Print the command we are going to run as Make would.
echo ${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ./...
${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ./...
echo ${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} "<omitted>"
${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ${TEST_PACKAGES}
# Capture the test result to exit on error after coverage.
TEST_RESULT=$?

Expand Down

0 comments on commit d7714c4

Please sign in to comment.