summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2012-02-18 12:58:39 +0530
committerVijay Bellur <vijay@gluster.com>2012-02-18 05:09:07 -0800
commit061d70e8195d082043b071118333b7e3173fa3ec (patch)
tree03467b419bd870333bc68ab1bff034315b897fdc
parentdf12073c4cc8340eb85b5d25c2da84fc21ec1f38 (diff)
extras/rpc-coverage.sh : behavior fix
don't treat getfattr after 'setfattr -x' (ie, removexattr()) as an error. ignore the output so the script runs for completion Change-Id: Id7089b91e7259a39be7cb6fce627828774c4acbc Signed-off-by: Amar Tumballi <amar@gluster.com> BUG: 787956 Reviewed-on: http://review.gluster.com/2768 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rwxr-xr-xextras/rpc-coverage.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/extras/rpc-coverage.sh b/extras/rpc-coverage.sh
index ebb92a2a148..9148a73e241 100755
--- a/extras/rpc-coverage.sh
+++ b/extras/rpc-coverage.sh
@@ -398,8 +398,7 @@ function test_getxattr()
function test_removexattr()
{
setfattr -x trusted.testing $PFX/dir/file || fail "setfattr remove"
- getfattr -n trusted.testing $PFX/dir/file 2>&1 | grep -q 'No such attribute' \
- || fail "getfattr"
+ getfattr -n trusted.testing $PFXf/dir/file 2>&1 | grep -q "No such attribute"
}