diff --git a/test/e2e-common.sh b/test/e2e-common.sh index b6f783003..5d7531dc1 100755 --- a/test/e2e-common.sh +++ b/test/e2e-common.sh @@ -26,6 +26,7 @@ export GATEWAY_NAMESPACE_OVERRIDE=${GATEWAY_NAMESPACE_OVERRIDE:-istio-system} export GATEWAY_CLASS=${GATEWAY_CLASS:-istio} export UNSUPPORTED_E2E_TESTS=${UNSUPPORTED_E2E_TESTS:-$ISTIO_UNSUPPORTED_E2E_TESTS} export KIND=${KIND:-0} +export GATEWAY_TESTS_ONLY=${GATEWAY_TESTS_ONLY:-0} function parse_flags() { case "$1" in @@ -49,6 +50,9 @@ function parse_flags() { readonly KIND=1 return 1 ;; + --gateway-tests-only) + readonly GATEWAY_TESTS_ONLY=1 + return 1 esac return 0 } diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index febce881a..bec457e18 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -24,11 +24,13 @@ header "Running e2e tests" failed=0 -knative_conformance || failed=1 -test_ha || failed=1 -test_e2e || failed=1 +if [[ "$GATEWAY_TESTS_ONLY" -eq "0" ]]; then + knative_conformance || failed=1 + test_ha || failed=1 + test_e2e || failed=1 +fi -if [[ "${JOB_NAME:-unknown}" == *"continuous"* ]]; then +if [[ "${JOB_NAME:-unknown}" == *"continuous"* ]] || (( GATEWAY_TESTS_ONLY )); then gateway_conformance || true # this is informational fi