summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/volume.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 268887416e1..32665467129 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -60,3 +60,12 @@ function afr_child_up_status {
function glustershd_up_status {
gluster volume status | grep "Self-heal Daemon" | awk '{print $6}'
}
+
+function kill_brick()
+{
+ vol=$1
+ host=$2
+ brick=$3
+ brick_hiphenated=$(echo $brick | tr '/' '-')
+ kill -9 `cat /var/lib/glusterd/vols/$vol/run/${host}${brick_hiphenated}.pid`
+}