Skip to content

Commit

Permalink
test: do test embedded template (#2050)
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek authored Oct 26, 2023
1 parent 1d94c1a commit b1b329e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ function install_rust() {

function unit_tests() {
local failed=0
header "Checking embedded templates"
go test knative.dev/func/pkg/filesystem -run '^\QTestFileSystems\E$/^\Qembedded\E$' -v || failed=1
if (( failed )); then
results_banner "Embedded templates check failed"
exit "${failed}"
fi
header "Unit tests for $(go_mod_module_name)"
make test || failed=1
if (( failed )); then
Expand Down

0 comments on commit b1b329e

Please sign in to comment.