summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2017-11-28 11:49:12 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-11-28 09:44:10 +0000
commit0805771ad3e676224760a8bbfe7a265d0e132a7e (patch)
treeaf078bccda142c56ba96b941b9a5e50ac2ac648b /tests
parentbdd7ad3787beebcf55340f7ebb495d42002516d2 (diff)
tests: fix bug-1432542-mpx-restart-crash.t spurious failure
Change-Id: Ied1215bfec0ccf2ec8ee55a0aaf618517b67bd55 BUG: 1517961 Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/core/bug-1432542-mpx-restart-crash.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/bugs/core/bug-1432542-mpx-restart-crash.t b/tests/bugs/core/bug-1432542-mpx-restart-crash.t
index 970a181c83d..5537af84fa1 100644
--- a/tests/bugs/core/bug-1432542-mpx-restart-crash.t
+++ b/tests/bugs/core/bug-1432542-mpx-restart-crash.t
@@ -28,6 +28,11 @@ get_mount_point () {
printf "%s/vol%02d" $MOUNT_BASE $1
}
+function count_up_bricks {
+ vol=$1;
+ $CLI --xml volume status $vol | grep '<status>1' | wc -l
+}
+
create_volume () {
local vol_name=$(printf "%s-vol%02d" $V0 $1)
@@ -42,7 +47,8 @@ create_volume () {
done
TEST $cmd
TEST $CLI volume start $vol_name
- EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Started" volinfo_field $vol_name "Status"
+ # check for 6 bricks and 1 shd daemon to be up and running
+ EXPECT_WITHIN $PROCESS_UP_TIMEOUT 7 count_up_bricks $vol_name
local mount_point=$(get_mount_point $1)
mkdir -p $mount_point
TEST $GFS -s $H0 --volfile-id=$vol_name $mount_point