From 1c9b229a860908ffc0c0134450c9218bc8079c22 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 22 Jul 2016 10:25:49 +0530 Subject: tests: Fix timing issue in ec.t Problem: Because of timing issue sometimes the mount is unmounted even before the version is updated, this is leading to not triggering heals. Fix: One way to fix this would be to increate 'sleep 2' to 'sleep 10' but that would slow things down. I changed the way ec learns it needs xattr healing so that it triggers heals even when the xattrs are not marked correctly. Change-Id: I1c82041166443ae7079dd99b89ea2ed170233ba3 BUG: 1359001 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/14980 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- tests/basic/ec/ec.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/basic') diff --git a/tests/basic/ec/ec.t b/tests/basic/ec/ec.t index a6ae287b7a7..cc882771501 100644 --- a/tests/basic/ec/ec.t +++ b/tests/basic/ec/ec.t @@ -109,7 +109,7 @@ function check_rmdir { } function check_setxattr { - stat $M0/setxattr + getfattr -d -m. -e hex $M0/setxattr for b in $*; do v=$(my_getfattr -n user.foo $b/setxattr) if [ "$v" != "ash_nazg_durbatuluk" ]; then @@ -122,7 +122,7 @@ function check_setxattr { } function check_removexattr { - stat $M0/removexattr + getfattr -d -m. -e hex $M0/removexattr for b in $*; do my_getfattr -n user.bar $b/removexattr 2> /dev/null if [ $? -eq 0 ]; then -- cgit