diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index bf68f3e..8d8adcf 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -709,10 +709,10 @@ runTests () { condemnedCount=`$PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | $AWK 'BEGIN {total = 0} {total += 1} END {print total}'` echo "WARNING: $condemnedCount rogue build processes detected, terminating." $PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | /usr/bin/xargs -t -I {} /bin/kill -9 {} > /dev/null - echo "$MVN clean test -P runAllTests -D${PROJECT_NAME}PatchProcess" + echo "$MVN clean test -Dsurefire.rerunFailingTestsCount=2 -P runAllTests -D${PROJECT_NAME}PatchProcess" export MAVEN_OPTS="${MAVEN_OPTS}" ulimit -a - $MVN clean test -P runAllTests -D${PROJECT_NAME}PatchProcess + $MVN clean test -Dsurefire.rerunFailingTestsCount=2 -P runAllTests -D${PROJECT_NAME}PatchProcess if [[ $? != 0 ]] ; then ### Find and format names of failed tests failed_tests=`find . -name 'TEST*.xml' | xargs $GREP -l -E "