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