Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Improve template tests modification
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Eltgroth <[email protected]>
  • Loading branch information
joeeltgroth committed Oct 20, 2022
1 parent 4c08749 commit 76eae9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/testdata/template_and_smoke/template-ce/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ template-ce.path := $(abspath $(path))
$(eval $(call INCLUDE_FILE, $(ROOT_DIR)/builder))

template-ce.image := kn-fn-test/template-ce
template-ce.java_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep java)
template-ce.python_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep python)
template-ce.java_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep java-)
template-ce.python_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep python-)
$(template-ce.java_image_paths): $(PACK) $(builder.image.out)
cd $@ && $(PACK) build $(template-ce.image):$(notdir $@) --builder $(shell cat $(builder.image.out)) --env BP_FUNCTION=functions.Handler --pull-policy if-not-present --clear-cache
$(template-ce.python_image_paths): $(PACK) $(builder.image.out)
Expand Down
4 changes: 2 additions & 2 deletions tests/testdata/template_and_smoke/template-http/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ template-http.path := $(abspath $(path))
$(eval $(call INCLUDE_FILE, $(ROOT_DIR)/builder))

template-http.image := kn-fn-test/template-http
template-http.java_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep java)
template-http.python_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep python)
template-http.java_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep java-)
template-http.python_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep python-)
$(template-http.java_image_paths): $(PACK) $(builder.image.out)
cd $@ && $(PACK) build $(template-http.image):$(notdir $@) --builder $(shell cat $(builder.image.out)) --env BP_FUNCTION=functions.Handler --pull-policy if-not-present --clear-cache
$(template-http.python_image_paths): $(PACK) $(builder.image.out)
Expand Down

0 comments on commit 76eae9d

Please sign in to comment.