Skip to content

Commit 500397e

Browse files
authored
Add -count=1 to e2e tests to avoid caching (#980)
Signed-off-by: Todd Short <[email protected]>
1 parent ce49af8 commit 500397e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ test: manifests generate fmt vet test-unit test-e2e #HELP Run all tests.
118118

119119
.PHONY: e2e
120120
e2e: #EXHELP Run the e2e tests.
121-
go test -v ./test/e2e/...
121+
go test -count=1 -v ./test/e2e/...
122122

123123
E2E_REGISTRY_NAME := docker-registry
124124
E2E_REGISTRY_NAMESPACE := operator-controller-e2e
@@ -129,7 +129,7 @@ export CATALOG_IMG := $(REGISTRY_ROOT)/test-catalog:e2e
129129
.PHONY: test-ext-dev-e2e
130130
test-ext-dev-e2e: $(OPERATOR_SDK) $(KUSTOMIZE) $(KIND) #HELP Run extension create, upgrade and delete tests.
131131
test/extension-developer-e2e/setup.sh $(OPERATOR_SDK) $(CONTAINER_RUNTIME) $(KUSTOMIZE) $(KIND) $(KIND_CLUSTER_NAME) $(E2E_REGISTRY_NAMESPACE)
132-
go test -v ./test/extension-developer-e2e/...
132+
go test -count=1 -v ./test/extension-developer-e2e/...
133133

134134
.PHONY: test-unit
135135
ENVTEST_VERSION := $(shell go list -m k8s.io/client-go | cut -d" " -f2 | sed 's/^v0\.\([[:digit:]]\{1,\}\)\.[[:digit:]]\{1,\}$$/1.\1.x/')

0 commit comments

Comments
 (0)