diff --git a/test/e2e-tests-kind.env b/test/e2e-tests-kind.env new file mode 100644 index 00000000000..ddc0636c73b --- /dev/null +++ b/test/e2e-tests-kind.env @@ -0,0 +1,3 @@ +SKIP_INITIALIZE=true +PIPELINE_FEATURE_GATE=stable +RUN_YAML_TESTS=false diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index 4a077e56a3e..3001f74c631 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -19,9 +19,18 @@ source $(git rev-parse --show-toplevel)/test/e2e-common.sh + +# Setting defaults +PIPELINE_FEATURE_GATE=${PIPELINE_FEATURE_GATE:-stable} +SKIP_INITIALIZE=${SKIP_INITIALIZE:="false"} +RUN_YAML_TESTS=${RUN_YAML_TESTS:="true"} +failed=0 + # Script entry point. -initialize $@ +if [ "${SKIP_INITIALIZE}" != "true" ]; then + initialize $@ +fi header "Setting up environment" @@ -49,17 +58,13 @@ function run_e2e() { # Run these _after_ the integration tests b/c they don't quite work all the way # and they cause a lot of noise in the logs, making it harder to debug integration # test failures. - go_test_e2e -tags=examples -timeout=20m ./test/ || failed=1 + if [ "${RUN_YAML_TESTS}" == "true"]; then + go_test_e2e -tags=examples -timeout=20m ./test/ || failed=1 + fi } -if [ "$PIPELINE_FEATURE_GATE" == "" ]; then - set_feature_gate "stable" - run_e2e -else - set_feature_gate "$PIPELINE_FEATURE_GATE" - run_e2e -fi - +set_feature_gate "$PIPELINE_FEATURE_GATE" +run_e2e (( failed )) && fail_test success