From 8e268f1341ab9ebbaf820d866499b85daad93010 Mon Sep 17 00:00:00 2001 From: vprashar2929 Date: Mon, 16 Feb 2026 11:49:27 +0530 Subject: [PATCH] chore: exclude e2e tests from make test unconditionally The `test/cvo` e2e tests require a live OCP cluster and were excluded from make test only when CI=true. This caused make test to fail locally when no cluster is available. This commit makes the exclusion unconditional so make test behaves consistently Signed-off-by: vprashar2929 --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cb3c055f5..facb9dfde 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,10 @@ gotestsum: .PHONY: gotestsum JUNIT_DIR := "_output" -PACKAGES := "./..." +# tests in github.com/openshift/cluster-version-operator/test/ are e2e tests executed separately +PACKAGES := $(shell go list ./... | grep -v "github.com/openshift/cluster-version-operator/test/" | xargs) ifeq ($(CI),true) JUNIT_DIR := "$(ARTIFACT_DIR)" -# tests in github.com/openshift/cluster-version-operator/test/ will be executed separately in CI -PACKAGES := $(shell go list ./... | grep -v "github.com/openshift/cluster-version-operator/test/" | xargs) endif test: gotestsum