From 9d3579de620b830d1472ecfcad33d5f41efe5499 Mon Sep 17 00:00:00 2001 From: Bryan Call Date: Thu, 4 Dec 2025 15:16:41 -0800 Subject: [PATCH] Fix autest.sh.in to preserve autest exit code The trailing if-blocks for restoring UDS test directories were overwriting autest's exit code with 0, causing test failures to be silently ignored in CI. Now we capture the exit code immediately after autest runs and exit with it at the end of the script. --- tests/autest.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/autest.sh.in b/tests/autest.sh.in index 51afd8d53a0..813f3ccfa3f 100755 --- a/tests/autest.sh.in +++ b/tests/autest.sh.in @@ -29,6 +29,7 @@ ${RUNPIPENV} run env autest \ --build-root ${CMAKE_BINARY_DIR} \ ${CURL_UDS_FLAG} ${AUTEST_OPTIONS} \ "$@" +autest_exit=$? # Restore tests back to source tree and remove temp dir if [ -n "${CURL_UDS_FLAG}" ]; then @@ -45,3 +46,5 @@ if [ -n "${CURL_UDS_FLAG}" ]; then rm -rf "${CMAKE_SKIP_GOLD_DIR}" fi fi + +exit $autest_exit