summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-05-09 12:23:10 +0530
committerNiels de Vos <ndevos@redhat.com>2015-05-09 14:50:15 -0700
commit8e26dc8baf61ae323bcc1eb311436b225312d84e (patch)
tree0515ceb3ada5da3e21b36f5b862927be0ecb4a01 /tests/volume.rc
parenta3af10a801a40fe990ee5db63c6dd6cb97713e4c (diff)
tests: fix bitrot spurious failures
Change-Id: I55bd62480b7ee38cf7b29aeba67b19b0c5bbe2fb BUG: 1220016 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/10702 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/10705 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Gaurav Kumar Garg <ggarg@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 5ba637dee54..b71fea4d503 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -524,3 +524,12 @@ else
echo "1"
fi
}
+
+function get_bitd_count {
+ ps auxw | grep glusterfs | grep bitd.pid | grep -v grep | wc -l
+}
+
+function get_scrubd_count {
+ ps auxw | grep glusterfs | grep scrub.pid | grep -v grep | wc -l
+}
+