diff --git a/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh b/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh index c641265e03fd1..c52d7693b8129 100644 --- a/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh +++ b/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh @@ -62,12 +62,7 @@ if [[ "${CLUSTER_TYPE}" == gcp ]]; then popd fi -test_suite=openshift/conformance/parallel -if [[ -e "${SHARED_DIR}/test-suite.txt" ]]; then - test_suite=$(<"${SHARED_DIR}/test-suite.txt") -fi - -openshift-tests run "${test_suite}" \ +openshift-tests "${TEST_COMMAND}" "${TEST_SUITE}" \ --provider "${TEST_PROVIDER}" \ -o /tmp/artifacts/e2e.log \ --junit-dir /tmp/artifacts/junit diff --git a/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-ref.yaml b/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-ref.yaml index 60329d4e34d8a..918c0054c701a 100644 --- a/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-ref.yaml +++ b/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-ref.yaml @@ -2,6 +2,13 @@ ref: as: openshift-e2e-test from: tests commands: openshift-e2e-test-commands.sh + env: + - name: TEST_COMMAND + default: run + documentation: The test command to run. Use 'openshift-test --help' to list available commands. + - name: TEST_SUITE + default: openshift/conformance/parallel + documentation: The test suite to run. Use 'openshift-test TEST_COMMAND --help' to list available suites. resources: requests: cpu: "3"