summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/bug-905864.t3
-rw-r--r--tests/volume.rc5
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/bugs/bug-905864.t b/tests/bugs/bug-905864.t
index 9d18ea1e..688723e1 100644
--- a/tests/bugs/bug-905864.t
+++ b/tests/bugs/bug-905864.t
@@ -1,6 +1,7 @@
#!/bin/bash
. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
cleanup;
@@ -25,5 +26,7 @@ $(dirname $0)/bug-905864 $M1/file1;
wait
rm -f $(dirname $0)/bug-905864
+EXPECT $(brick_count $V0) online_brick_count
+
cleanup
diff --git a/tests/volume.rc b/tests/volume.rc
index 935e5039..9d579aa2 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -14,6 +14,11 @@ function brick_count()
$CLI volume info $vol | egrep "^Brick[0-9]+: " | wc -l;
}
+function online_brick_count ()
+{
+ pidof glusterfsd | wc -w
+}
+
function volume_option()
{
local vol=$1