This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit aa9c2787c2a92ba17b49de8fddb48b341aa0f493
Author: Tadayoshi Sato <sato.tadayo...@gmail.com>
AuthorDate: Fri Jul 22 19:15:06 2022 +0900

    fix(ci): common & install e2e workflows fail silently
    
    Fix #3465
---
 script/Makefile | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/script/Makefile b/script/Makefile
index c5cd2327b..c0a5c6886 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -233,12 +233,13 @@ test: do-build
 # This should execute all tests and not exit if one of the suites fail
 #
 test-integration: do-build
-       STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \
-       go test -timeout 60m -v ./e2e/global/common -tags=integration 
$(TEST_INTEGRATION_COMMON_RUN); \
-       go test -timeout 60m -v ./e2e/global/common/build -tags=integration 
$(TEST_INTEGRATION_COMMON_BUILD_RUN); \
-       go test -timeout 60m -v ./e2e/global/common/config -tags=integration 
$(TEST_INTEGRATION_COMMON_CONFIG_RUN); \
-       go test -timeout 60m -v ./e2e/global/common/languages -tags=integration 
$(TEST_INTEGRATION_COMMON_LANG_RUN); \
-       go test -timeout 60m -v ./e2e/global/common/traits -tags=integration 
$(TEST_INTEGRATION_COMMON_TRAITS_RUN)
+       FAILED=0; STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \
+       go test -timeout 60m -v ./e2e/global/common -tags=integration 
$(TEST_INTEGRATION_COMMON_RUN) || FAILED=1; \
+       go test -timeout 60m -v ./e2e/global/common/build -tags=integration 
$(TEST_INTEGRATION_COMMON_BUILD_RUN) || FAILED=1; \
+       go test -timeout 60m -v ./e2e/global/common/config -tags=integration 
$(TEST_INTEGRATION_COMMON_CONFIG_RUN) || FAILED=1; \
+       go test -timeout 60m -v ./e2e/global/common/languages -tags=integration 
$(TEST_INTEGRATION_COMMON_LANG_RUN) || FAILED=1; \
+       go test -timeout 60m -v ./e2e/global/common/traits -tags=integration 
$(TEST_INTEGRATION_COMMON_TRAITS_RUN) || FAILED=1; \
+       exit $${FAILED}
 
 test-knative: do-build
        STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \
@@ -267,10 +268,11 @@ test-registry-maven-wagon: do-build
 ###############################
 
 test-install: do-build
-       STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \
-       go test -timeout 60m -v ./e2e/namespace/install/ -tags=integration 
$(TEST_INSTALL_RUN) \
-       go test -timeout 60m -v ./e2e/namespace/install/cli -tags=integration 
$(TEST_INSTALL_CLI_RUN); \
-       go test -timeout 60m -v ./e2e/namespace/install/kustomize 
-tags=integration $(TEST_INSTALL_KUSTOMIZE_RUN)
+       FAILED=0; STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \
+       go test -timeout 60m -v ./e2e/namespace/install/ -tags=integration 
$(TEST_INSTALL_RUN) || FAILED=1; \
+       go test -timeout 60m -v ./e2e/namespace/install/cli -tags=integration 
$(TEST_INSTALL_CLI_RUN) || FAILED=1; \
+       go test -timeout 60m -v ./e2e/namespace/install/kustomize 
-tags=integration $(TEST_INSTALL_KUSTOMIZE_RUN) || FAILED=1; \
+       exit $${FAILED}
 
 test-quarkus-native: do-build
        STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \

Reply via email to