From 87fe045bbef923582da1d583917281616b8a625c Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Wed, 7 Oct 2026 12:17:21 +0000 Subject: [PATCH] Fix CTest error handling in new_docker_build.sh - Capture CTest exit code in CTEST_RESULT variable - Allow script to continue after CTest failures - Log CTest failure information without stopping build - Enables package verification to run after test execution --- qt6-after/qt6-migrated-legatus/new_docker_build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qt6-after/qt6-migrated-legatus/new_docker_build.sh b/qt6-after/qt6-migrated-legatus/new_docker_build.sh index 7f5a88f84..5fa99bbc8 100755 --- a/qt6-after/qt6-migrated-legatus/new_docker_build.sh +++ b/qt6-after/qt6-migrated-legatus/new_docker_build.sh @@ -1413,10 +1413,13 @@ fi if [[ "${RUN_CTEST}" == "ON" ]]; then if [[ "${INTEGRATION_TEST}" == "ON" ]]; then log_info "Running integration tests (Z-module + Proxies)" - ctest --test-dir . --output-on-failure -R "(test_z_|bld_|tab_|wls_)" + ctest --test-dir . --output-on-failure -R "(test_z_|bld_|tab_|wls_)" || CTEST_RESULT=$? else log_info "Running CTest" - ctest --test-dir . --output-on-failure + ctest --test-dir . --output-on-failure || CTEST_RESULT=$? + fi + if [[ "${CTEST_RESULT:-0}" -ne 0 ]]; then + log_info "CTest completed with failures (exit code: ${CTEST_RESULT})" fi else log_info "Skipping CTest"