summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Philips <brandon@ifup.co>2013-04-30 07:32:53 -0700
committerBrandon Philips <brandon@ifup.co>2013-04-30 07:32:53 -0700
commitba9b9338d10341f283c7e1afc532b32fcec8925d (patch)
treeb1393d199ad7bbced83677f2c735c3c2dfe3035b
parent2971df45020e39516c9b3d6217195b4029026f7a (diff)
downloadattr-ba9b9338d10341f283c7e1afc532b32fcec8925d.tar.gz
test: fix on selinux systems
additional 'security.selinux' attrs appear on selinux systems, filter them out to get the tests to pass.
-rw-r--r--test/attr.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/attr.test b/test/attr.test
index cdec1b3..c9a8ee0 100644
--- a/test/attr.test
+++ b/test/attr.test
@@ -276,7 +276,7 @@ Tests for proper path recursion reported by Tony Ernst <tee@sgi.com> bnc#457660
$ setfattr -n "user.9" 1/2/3
$ setfattr -n "user.a" 1/2/3
- $ getfattr -h -L -R -m '.' -e hex 1 | ./sort-getfattr-output
+ $ getfattr -h -L -R -m '.' -e hex 1 | grep -v selinux | ./sort-getfattr-output
> # file: 1
> user.9
> user.a
@@ -290,7 +290,7 @@ Tests for proper path recursion reported by Tony Ernst <tee@sgi.com> bnc#457660
> user.a
>
- $ getfattr -h -P -R -m '.' -e hex 1/2 | ./sort-getfattr-output
+ $ getfattr -h -P -R -m '.' -e hex 1/2 | grep -v selinux | ./sort-getfattr-output
> # file: 1/2
> user.9
> user.a