Skip to content

Commit db6656c

Browse files
author
Per Goncalves da Silva
committed
parameterize e2e target
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent f9485ff commit db6656c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,16 @@ e2e.namespace:
126126
@printf "e2e-tests-$(shell date +%s)-$$RANDOM" > e2e.namespace
127127

128128
.PHONY: e2e
129-
GINKGO_E2E_OPTS += -timeout 90m -v -randomize-suites -race -trace --show-node-events
130-
E2E_OPTS += -namespace=operators -olmNamespace=operator-lifecycle-manager -catalogNamespace=operator-lifecycle-manager -dummyImage=bitnami/nginx:latest
129+
E2E_TIMEOUT ?= 90m
130+
E2E_TEST_NS ?= operators
131+
E2E_INSTALL_NS ?= operator-lifecycle-manager
132+
E2E_CATALOG_NS ?= $(E2E_INSTALL_NS)
133+
GINKGO_OPTS =? -v -randomize-suites -race -trace --show-node-events
131134
e2e:
132-
$(GINKGO) $(GINKGO_E2E_OPTS) ./test/e2e -- $(E2E_OPTS)
135+
$(GINKGO) -timeout $(E2E_TIMEOUT) $(GINKGO_OPTS) ./test/e2e -- -namespace=E2E_TEST_NS -olmNamespace=$(E2E_INSTALL_NS) -catalogNamespace=$(E2E_CATALOG_NS) $(E2E_OPTS)
136+
137+
.PHONY: e2e-local
138+
e2e-local: e2e-build kind-create deploy e2e
133139

134140
.PHONY: kind-clean
135141
kind-clean:

0 commit comments

Comments
 (0)