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:
parent
cfb6fbefe2
commit
2933150500
|
@ -623,6 +623,10 @@ runTests () {
|
|||
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=""
|
||||
### 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}'`
|
||||
|
@ -663,6 +667,7 @@ runTests () {
|
|||
|
||||
{color:red}-1 core zombie tests{color}. There are ${ZOMBIE_TESTS_COUNT} zombie test(s): ${ZB_STACK}"
|
||||
BAD=1
|
||||
jps | grep surefirebooter | cut -d ' ' -f 1 | xargs kill -9
|
||||
else
|
||||
echo "We're ok: there is no zombie test, but some tests took some time to stop"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue