summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2014-11-13 06:59:41 +0530
committerKaushal M <kaushal@redhat.com>2014-11-18 21:52:11 -0800
commitb9bd3666ae094f54c5049d03c7907a9dff14503d (patch)
tree545922936bf0d2a8c9522206dff7813b4fb0240e /tests
parent4a3c36ba002eaf9e77c6d71180fcc7d0a415d69f (diff)
tests: spurious failure fix in mgmt_v3_locks.t
Change-Id: I7c4599648b5d47d93a447e58c063fab21e8f9ef7 BUG: 1163543 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/9114 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com> Tested-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/mgmt_v3-locks.t9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/basic/mgmt_v3-locks.t b/tests/basic/mgmt_v3-locks.t
index 4c259caa874..1a3abd6a224 100644
--- a/tests/basic/mgmt_v3-locks.t
+++ b/tests/basic/mgmt_v3-locks.t
@@ -70,7 +70,9 @@ function same_vol_remove_brick {
local vol=$1
local brick=$2
$CLI_1 volume remove-brick $1 $2 start &
+ PID =$!
$CLI_2 volume remove-brick $1 $2 start
+ wait $PID
}
cleanup;
@@ -100,7 +102,9 @@ same_vol_remove_brick $V1 $H2:$B2/$V1
EXPECT_WITHIN $PROBE_TIMEOUT 2 check_peers
$CLI_1 volume set $V0 diagnostics.client-log-level DEBUG &
+PID=$!
$CLI_1 volume set $V1 diagnostics.client-log-level DEBUG
+wait $PID
kill_glusterd 3
$CLI_1 volume status $V0
$CLI_2 volume status $V1
@@ -113,9 +117,4 @@ TEST $glusterd_3
$CLI_1 volume status $V0
$CLI_2 volume status $V1
$CLI_1 peer status
-#EXPECT_WITHIN $PROBE_TIMEOUT 2 check_peers
-#EXPECT 'Started' volinfo_field $V0 'Status';
-#EXPECT 'Started' volinfo_field $V1 'Status';
-#two_diff_vols_stop_force
-#EXPECT_WITHIN $PROBE_TIMEOUT 2 check_peers
cleanup;