From 988e00f83cb74c908471caf6af9cbce05b7f95c9 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Sat, 9 May 2015 12:23:10 +0530 Subject: tests: fix bitrot spurious failures Change-Id: I55bd62480b7ee38cf7b29aeba67b19b0c5bbe2fb BUG: 1220016 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/10702 Reviewed-by: Pranith Kumar Karampuri Tested-by: Vijay Bellur --- tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t | 2 ++ .../bugs/bitrot/1209752-volume-status-should-show-bitrot-scrub-info.t | 3 +++ tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t | 2 ++ tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t | 2 ++ 4 files changed, 9 insertions(+) (limited to 'tests/bugs') diff --git a/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t b/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t index 4f98174c16f..51603dfc21e 100644 --- a/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t +++ b/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t @@ -22,6 +22,8 @@ TEST $CLI volume start $V0 ## Enable bitrot on volume $V0 TEST $CLI volume bitrot $V0 enable +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" get_bitd_count + ## Set bitrot scrub-throttle value to lazy TEST $CLI volume bitrot $V0 scrub-throttle lazy diff --git a/tests/bugs/bitrot/1209752-volume-status-should-show-bitrot-scrub-info.t b/tests/bugs/bitrot/1209752-volume-status-should-show-bitrot-scrub-info.t index 89d2418e290..6101910666c 100644 --- a/tests/bugs/bitrot/1209752-volume-status-should-show-bitrot-scrub-info.t +++ b/tests/bugs/bitrot/1209752-volume-status-should-show-bitrot-scrub-info.t @@ -26,6 +26,9 @@ TEST $CLI_1 volume start $V0 ## Enable bitrot on volume $V0 TEST $CLI_1 volume bitrot $V0 enable +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" get_bitd_count +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" get_scrubd_count + ## From node 1 Gluster volume status command should show the status of bitrot ## daemon of all the nodes. there are 2 nodes in a cluster with having brick ## ${V0}1 and ${V0}2 . So there should be 2 bitrot daemon running. diff --git a/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t b/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t index efba5794b08..7ee97d5df43 100644 --- a/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t +++ b/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t @@ -22,6 +22,8 @@ TEST $CLI volume start $V0 ## Enable bitrot on volume $V0 TEST $CLI volume bitrot $V0 enable +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" get_bitd_count + ## Set bitrot scrubber process to pause state TEST $CLI volume bitrot $V0 scrub pause diff --git a/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t b/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t index 0a306df4698..6c5521217a6 100644 --- a/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t +++ b/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t @@ -22,6 +22,8 @@ TEST $CLI volume start $V0 ## Enable bitrot for volume $V0 TEST $CLI volume bitrot $V0 enable +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" get_bitd_count + ## Pause scrubber operation on volume $V0 TEST $CLI volume bitrot $V0 scrub pause -- cgit