summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 9d18ea1e9ff..688723e1452 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 935e503908f..9d579aa22be 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