diff --git a/run-tests.sh b/run-tests.sh index 06fec4aa0..2a819dba6 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -228,6 +228,7 @@ function main_and_retry() { RESFILE=`mktemp /tmp/${0##*/}.XXXXXX` || exit 1 main "$@" | tee ${RESFILE} + RET=$? FAILED=$( awk '/Failed: /{print $1}' ${RESFILE} ) if [ "x${FAILED}" != "x" ] ; then @@ -239,9 +240,11 @@ function main_and_retry() echo " *********************************" echo "" main ${FAILED} + RET=$? fi rm -f ${RESFILE} + return ${RET} } echo