diff --git a/tools/test/test-setup.sh b/tools/test/test-setup.sh index 7d1cbd79d0b47a..a5d78d3d930cd6 100755 --- a/tools/test/test-setup.sh +++ b/tools/test/test-setup.sh @@ -432,4 +432,8 @@ if [[ -n "$TEST_UNDECLARED_OUTPUTS_ZIP" ]] && cd "$TEST_UNDECLARED_OUTPUTS_DIR"; fi fi +# Raise the original signal if the test terminated abnormally. +if [ $exitCode -gt 128 ]; then + kill -$(($exitCode - 128)) $$ &> /dev/null +fi exit $exitCode