summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2015-06-26 11:46:45 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-06-26 02:57:32 -0700
commit264776f7af6dffabc2216cf46fd1885a309f6e62 (patch)
tree2955694924a6229682fea048cf662e928b450e4b /tests/volume.rc
parent8849a9a836af64ec150fb4909d02d5eff1304ade (diff)
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 <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/11416 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc2
1 files changed, 1 insertions, 1 deletions
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 {