HBASE-7350 Flakey tests make CI unreliable

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1421623 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-12-14 00:11:09 +00:00
parent e0c1dded33
commit d03682ea3d
1 changed files with 2 additions and 0 deletions

View File

@ -597,6 +597,8 @@ runTests () {
failed_tests=""
### Kill any rogue build processes from the last attempt
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 -Dsurefire.secondPartThreadCount=4"
export MAVEN_OPTS="${MAVEN_OPTS}"