From 264776f7af6dffabc2216cf46fd1885a309f6e62 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Fri, 26 Jun 2015 11:46:45 +0530 Subject: tests: fix basic/afr/replace-brick-self-heal.t failure Test fails with: not ok 28 Got "Binary file (standard input) matches" instead of "qwerty" FAILED COMMAND: qwerty get_text_xattr user.test /d/backends/patchy1_new/file5.txt not ok 29 Got "Binary file (standard input) matches" instead of "qwerty" FAILED COMMAND: qwerty get_text_xattr user.test /d/backends/patchy0/file5.txt Failed 2/29 subtests Fix: Pass -a flag to grep Change-Id: I69626fbf95a9ff756046363c5627cf98ea3f1df8 BUG: 1207829 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/11416 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- tests/volume.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/volume.rc b/tests/volume.rc index 1294bbb656f..f4ae7005bba 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -249,7 +249,7 @@ function gf_gfid_xattr_to_str { function get_text_xattr { local key=$1 local path=$2 - getfattr -d -m. -e text $path 2>/dev/null | grep $key | cut -f2 -d'=' + getfattr -d -m. -e text $path 2>/dev/null | grep -a $key | cut -f2 -d'=' } function gf_check_file_opened_in_brick { -- cgit