From 2d9b17eddc6944ede45448a932afa308a511b3dd Mon Sep 17 00:00:00 2001 From: Jacob Baungard Hansen Date: Mon, 2 Dec 2024 10:37:13 +0100 Subject: [PATCH] Tests: Don't run tests which require OCP in Kind This adds a new regex in the Ginkgo tests, to ensure we can filter out tests which require OCP from being run during the kind tests. ACM-15734 Signed-off-by: Jacob Baungard Hansen --- cicd-scripts/customize-mco.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cicd-scripts/customize-mco.sh b/cicd-scripts/customize-mco.sh index 1a6051f27..35c3c9f1d 100755 --- a/cicd-scripts/customize-mco.sh +++ b/cicd-scripts/customize-mco.sh @@ -119,7 +119,8 @@ get_changed_components() { get_ginkgo_focus() { if [[ -n ${IS_KIND_ENV} ]]; then # For KinD cluster, do not need to run all test cases - GINKGO_FOCUS=" --focus manifestwork/g0 --focus endpoint_preserve/g0 --focus grafana/g0 --focus metrics/g0 --focus addon/g0 --focus alert/g0 --focus dashboard/g0" + # and we skip those that explictly requires OCP + GINKGO_FOCUS=" --focus manifestwork/g0 --focus endpoint_preserve/g0 --focus grafana/g0 --focus metrics/g0 --focus addon/g0 --focus alert/g0 --focus dashboard/g0 --skip requires-ocp/g0" else GINKGO_FOCUS="" fi