From 7342076f420efd62c9c46cdf5454b283225d1ec8 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Sun, 15 Jun 2014 16:19:15 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/8069 Tested-by: Gluster Build System Reviewed-by: Xavier Hernandez Reviewed-by: Vijay Bellur --- tests/volume.rc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/volume.rc') 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 +} -- cgit