From 0805771ad3e676224760a8bbfe7a265d0e132a7e Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Tue, 28 Nov 2017 11:49:12 +0530 Subject: tests: fix bug-1432542-mpx-restart-crash.t spurious failure Change-Id: Ied1215bfec0ccf2ec8ee55a0aaf618517b67bd55 BUG: 1517961 Signed-off-by: Atin Mukherjee --- tests/bugs/core/bug-1432542-mpx-restart-crash.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 '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 -- cgit