Skip to content

Commit 8e268f1

Browse files
committed
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 <vibhu.sharma2929@gmail.com>
1 parent f763687 commit 8e268f1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ gotestsum:
1010
.PHONY: gotestsum
1111

1212
JUNIT_DIR := "_output"
13-
PACKAGES := "./..."
13+
# tests in github.com/openshift/cluster-version-operator/test/ are e2e tests executed separately
14+
PACKAGES := $(shell go list ./... | grep -v "github.com/openshift/cluster-version-operator/test/" | xargs)
1415
ifeq ($(CI),true)
1516
JUNIT_DIR := "$(ARTIFACT_DIR)"
16-
# tests in github.com/openshift/cluster-version-operator/test/ will be executed separately in CI
17-
PACKAGES := $(shell go list ./... | grep -v "github.com/openshift/cluster-version-operator/test/" | xargs)
1817
endif
1918

2019
test: gotestsum

0 commit comments

Comments
 (0)