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

Commit 76eae9d

Browse files
committed
Improve template tests modification
Signed-off-by: Joe Eltgroth <[email protected]>
1 parent 4c08749 commit 76eae9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/testdata/template_and_smoke/template-ce/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ template-ce.path := $(abspath $(path))
77
$(eval $(call INCLUDE_FILE, $(ROOT_DIR)/builder))
88

99
template-ce.image := kn-fn-test/template-ce
10-
template-ce.java_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep java)
11-
template-ce.python_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep python)
10+
template-ce.java_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep java-)
11+
template-ce.python_image_paths := $(shell find $(template-ce.path) -mindepth 1 -maxdepth 1 -type l | grep python-)
1212
$(template-ce.java_image_paths): $(PACK) $(builder.image.out)
1313
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
1414
$(template-ce.python_image_paths): $(PACK) $(builder.image.out)

tests/testdata/template_and_smoke/template-http/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ template-http.path := $(abspath $(path))
77
$(eval $(call INCLUDE_FILE, $(ROOT_DIR)/builder))
88

99
template-http.image := kn-fn-test/template-http
10-
template-http.java_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep java)
11-
template-http.python_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep python)
10+
template-http.java_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep java-)
11+
template-http.python_image_paths := $(shell find $(template-http.path) -mindepth 1 -maxdepth 1 -type l | grep python-)
1212
$(template-http.java_image_paths): $(PACK) $(builder.image.out)
1313
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
1414
$(template-http.python_image_paths): $(PACK) $(builder.image.out)

0 commit comments

Comments
 (0)