summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-06-15 16:19:15 +0530
committerVijay Bellur <vbellur@redhat.com>2014-06-16 03:15:32 -0700
commit7342076f420efd62c9c46cdf5454b283225d1ec8 (patch)
tree6c227f4f5060778692af5325cf1a9d3e496ad43f /tests/volume.rc
parent47230eb38d96e51d2d5e976eda7ff82c62f6eedd (diff)
tests: Validate self-heal daemon completions
Removed sleep with EXPECT_WITHIN Heal full doesn't generate indices until the files/dirs are recreated. So wait until they are re-created and then wait for heal completion. Change-Id: I82399f6a17f94ecc101db45b83d8ef7bfa9c64dd BUG: 1092850 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/8069 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index acd9f94b124..db93ce7a2fe 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -369,3 +369,8 @@ function landfill_entry_count {
local brick=$1
ls $brick/.glusterfs/landfill | wc -l
}
+
+function path_exists {
+ stat $1
+ if [ $? -eq 0 ]; then echo "Y"; else echo "N"; fi
+}