Skip to content

Commit

Permalink
Update e2e-test script for per feature flag test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeJu authored and tekton-robot committed Feb 16, 2024
1 parent 73bac5a commit 123f4a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ SKIP_INITIALIZE=${SKIP_INITIALIZE:="false"}
RUN_YAML_TESTS=${RUN_YAML_TESTS:="true"}
SKIP_GO_E2E_TESTS=${SKIP_GO_E2E_TESTS:="false"}
E2E_GO_TEST_TIMEOUT=${E2E_GO_TEST_TIMEOUT:="20m"}
RUN_FEATUREFLAGS_TESTS=${RUN_FEATUREFLAGS_TESTS:="false"}
RESULTS_FROM=${RESULTS_FROM:-termination-message}
ENABLE_STEP_ACTIONS=${ENABLE_STEP_ACTIONS:="false"}
ENABLE_CEL_IN_WHENEXPRESSION=${ENABLE_CEL_IN_WHENEXPRESSION:="false"}
Expand Down Expand Up @@ -129,6 +130,10 @@ function run_e2e() {
if [ "${RUN_YAML_TESTS}" == "true" ]; then
go_test_e2e -mod=readonly -tags=examples -timeout=${E2E_GO_TEST_TIMEOUT} ./test/ || failed=1
fi

if [ "${RUN_FEATUREFLAG_TESTS}" == "true" ]; then
go_test_e2e -mod=readonly -tags=featureflags -timeout=${E2E_GO_TEST_TIMEOUT} ./test/ || failed=1
fi
}

add_spire "$PIPELINE_FEATURE_GATE"
Expand Down

0 comments on commit 123f4a2

Please sign in to comment.