HBASE-7555 Kill the remaining processus from other builds in the precommit env

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1432984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2013-01-14 16:40:40 +00:00
parent cfb6fbefe2
commit 2933150500
1 changed files with 5 additions and 0 deletions

View File

@ -623,6 +623,10 @@ runTests () {
echo "" echo ""
echo "" echo ""
### kill any process remaining from another test, maybe even another project
jps | grep surefirebooter | cut -d ' ' -f 1 | xargs kill -9 2>/dev/null
failed_tests="" failed_tests=""
### Kill any rogue build processes from the last attempt ### 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}'` condemnedCount=`$PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | $AWK 'BEGIN {total = 0} {total += 1} END {print total}'`
@ -663,6 +667,7 @@ runTests () {
{color:red}-1 core zombie tests{color}. There are ${ZOMBIE_TESTS_COUNT} zombie test(s): ${ZB_STACK}" {color:red}-1 core zombie tests{color}. There are ${ZOMBIE_TESTS_COUNT} zombie test(s): ${ZB_STACK}"
BAD=1 BAD=1
jps | grep surefirebooter | cut -d ' ' -f 1 | xargs kill -9
else else
echo "We're ok: there is no zombie test, but some tests took some time to stop" echo "We're ok: there is no zombie test, but some tests took some time to stop"
fi fi