Skip to content

Commit 671f6ae

Browse files
authored
Fix autest.sh.in to preserve autest exit code (#12732)
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.
1 parent 0528521 commit 671f6ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/autest.sh.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ${RUNPIPENV} run env autest \
2929
--build-root ${CMAKE_BINARY_DIR} \
3030
${CURL_UDS_FLAG} ${AUTEST_OPTIONS} \
3131
"$@"
32+
autest_exit=$?
3233

3334
# Restore tests back to source tree and remove temp dir
3435
if [ -n "${CURL_UDS_FLAG}" ]; then
@@ -45,3 +46,5 @@ if [ -n "${CURL_UDS_FLAG}" ]; then
4546
rm -rf "${CMAKE_SKIP_GOLD_DIR}"
4647
fi
4748
fi
49+
50+
exit $autest_exit

0 commit comments

Comments
 (0)