summaryrefslogtreecommitdiffstats
path: root/tests/cluster.rc
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-02-26 13:55:19 +0530
committerXavi Hernandez <xhernandez@redhat.com>2018-03-08 11:15:01 +0100
commitb2613c9eed6b9d840bc88105dadf282488e6cd64 (patch)
treed3b46b3248e5c688b4c323ecff43be17df70f02c /tests/cluster.rc
parent2a1adc5c9317d2ca78c9f4b890c46f7b3facd146 (diff)
tests: don't kill the process directly with KILL signal
Instead send the SIGTERM (default, 15) first, and at the end send SIGKILL. If SIGKILL is sent directly, we miss many tests like valgrind, lcov etc., not able to process the information properly. BUG: 1549000 Change-Id: I664de12ee7dbf47eb98b8141004cd51f6006b314 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests/cluster.rc')
-rw-r--r--tests/cluster.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc
index e258b586847..1c5247ca43f 100644
--- a/tests/cluster.rc
+++ b/tests/cluster.rc
@@ -96,7 +96,7 @@ function kill_node() {
h="H$index";
- kill -9 $(ps -ef | grep gluster | grep ${!h} | awk '{print $2}');
+ terminate_pids $(ps -ef | grep gluster | grep ${!h} | awk '{print $2}')
find $B0/$index/glusterd/vols -name '*.pid' | xargs rm -f
}