diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-12-16 21:41:58 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2016-12-19 01:31:52 -0800 |
commit | 2bb2313656a19ee8efe3cfeda4f2ae90e8e49b62 (patch) | |
tree | ddb0c149456599b1ad9fb3cc06b050cd8b0da25f /tests/bugs/core | |
parent | 5542b404f4a6b5968d52175ea10d694aabf906f1 (diff) |
tests: Fix spurious failure in bug-1402841.t-mt-dir-scan-race.t
Check that shd is up before executing 'volume heal' command
Change-Id: Ib510a5de06d732fd3a738e90fa16376698479897
BUG: 1405554
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/16169
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/bugs/core')
-rwxr-xr-x | tests/bugs/core/bug-1402841.t-mt-dir-scan-race.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugs/core/bug-1402841.t-mt-dir-scan-race.t b/tests/bugs/core/bug-1402841.t-mt-dir-scan-race.t index e31c81005bf..6351ba22511 100755 --- a/tests/bugs/core/bug-1402841.t-mt-dir-scan-race.t +++ b/tests/bugs/core/bug-1402841.t-mt-dir-scan-race.t @@ -21,10 +21,20 @@ EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" afr_child_up_status $V0 1 EXPECT "200" get_pending_heal_count $V0 TEST $CLI volume set $V0 self-heal-daemon on + +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" glustershd_up_status +EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 0 +EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 1 + TEST $CLI volume heal $V0 TEST $CLI volume set $V0 self-heal-daemon off EXPECT_NOT "^0$" get_pending_heal_count $V0 TEST $CLI volume set $V0 self-heal-daemon on + +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" glustershd_up_status +EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 0 +EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 1 + TEST $CLI volume heal $V0 EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0 TEST umount $M0 |