Skip to content

Commit 5199567

Browse files
committed
Made test packages overrideable.
1 parent 1deb25d commit 5199567

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hack/ci-test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ if [ "$OPENSHIFT_CI" == "true" ] && [ -n "$ARTIFACT_DIR" ] && [ -d "$ARTIFACT_DI
3737
GINKGO_ARGS="${GINKGO_ARGS} --junit-report=junit_machine_api_operator.xml --cover --coverprofile=test-unit-coverage.out --output-dir=${ARTIFACT_DIR}"
3838
fi
3939

40+
TEST_PACKAGES=${TEST_PACKAGES:-$(go list -f "{{ .Dir }}" ./...)}
41+
4042
# Print the command we are going to run as Make would.
41-
echo ${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ./...
42-
${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ./...
43+
echo ${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} "<omitted>"
44+
${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ${TEST_PACKAGES}
4345
# Capture the test result to exit on error after coverage.
4446
TEST_RESULT=$?
4547

0 commit comments

Comments
 (0)