File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,15 @@ ifdef KUBEBUILDER_ASSETS_DIR
133
133
setup_envtest_extra_args += --bin-dir $(KUBEBUILDER_ASSETS_DIR)
134
134
endif
135
135
136
+ .PHONY : kubebuilder_assets
137
+ kubebuilder_assets : $(SETUP_ENVTEST )
138
+ @echo Fetching assets for $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION )
139
+ $(eval KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST ) use --use-env -p path $(setup_envtest_extra_args ) $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ) ) )
140
+
136
141
.PHONY : test
137
142
TEST_PATHS ?= ./...
138
- test : $(SETUP_ENVTEST ) # # Run tests
139
- set -xeuf -o pipefail; \
140
- if [ -z " $( KUBEBUILDER_ASSETS) " ]; then \
141
- KUBEBUILDER_ASSETS=` $( SETUP_ENVTEST) use --use-env -p path $( setup_envtest_extra_args) $( KUBEBUILDER_ENVTEST_KUBERNETES_VERSION) ` ; \
142
- fi ; \
143
- KUBEBUILDER_ASSETS=" $$ KUBEBUILDER_ASSETS" go test -v $(TEST_PATHS ) $(TEST_ARGS )
143
+ test : kubebuilder_assets
144
+ KUBEBUILDER_ASSETS=" $( KUBEBUILDER_ASSETS) " go test -v $(TEST_PATHS ) $(TEST_ARGS )
144
145
145
146
E2E_TEMPLATES_DIR =test/e2e/data/infrastructure-openstack
146
147
E2E_KUSTOMIZE_DIR =test/e2e/data/kustomize
You can’t perform that action at this time.
0 commit comments