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
133133 setup_envtest_extra_args += --bin-dir $(KUBEBUILDER_ASSETS_DIR)
134134endif
135135
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+
136141.PHONY : test
137142TEST_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 )
144145
145146E2E_TEMPLATES_DIR =test/e2e/data/infrastructure-openstack
146147E2E_KUSTOMIZE_DIR =test/e2e/data/kustomize
You can’t perform that action at this time.
0 commit comments