From fd500d4396f910e4cf759e0fffa4daf4ed24745a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 23 Aug 2014 02:14:36 -0700 Subject: porting: Provide setfattr/getfattr implementation - Use 'getfattr' properly avoid redundant options during xattr query - Untabify certain parts of tests (remove tabs) - Avoid backtick evaluation for certain values to make code more portable. - Use awk on FreeBSD/Darwin, since 'wc' implementation is broken and adds spurious spaces in its output. Change-Id: I7dcc0b70874e43b4cda8c306ed18a31b7a3f990a BUG: 1131713 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/8520 Tested-by: Gluster Build System Reviewed-by: Emmanuel Dreyfus Tested-by: Emmanuel Dreyfus --- tests/fallocate.rc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/fallocate.rc') diff --git a/tests/fallocate.rc b/tests/fallocate.rc index 3756bb949bd..d117ba9c051 100644 --- a/tests/fallocate.rc +++ b/tests/fallocate.rc @@ -7,13 +7,13 @@ function require_fallocate() { - output=`fallocate $* 2>&1` - ret=$? - if [ ! $ret -eq 0 ] && ([[ $output == *unsupported* ]] || - [[ $output == *invalid* ]] || - [[ $output == *"not supported"* ]]) - then - SKIP_TESTS - exit - fi + output=`fallocate $* 2>&1` + ret=$? + if [ ! $ret -eq 0 ] && ([[ $output == *unsupported* ]] || + [[ $output == *invalid* ]] || + [[ $output == *"not supported"* ]]) + then + SKIP_TESTS + exit + fi } -- cgit