diff options
author | Bob Ippolito <bob@redivi.com> | 2017-06-19 23:17:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-19 23:17:58 -0700 |
commit | b69f3de3c4f3275cc24fc274a19fb8e2ed68fb4e (patch) | |
tree | fc57c2ec4ce5f750ffced7b20e9bdbc1acc299c0 | |
parent | e61ea9600cc6096799c4842232e97dde8663e48e (diff) | |
parent | 2509736acd8ce63c02ece507bb1e43efaef0a9f3 (diff) | |
download | xattr-b69f3de3c4f3275cc24fc274a19fb8e2ed68fb4e.tar.gz |
Merge pull request #61 from tanium/SELinux_TestFix
Fix test failures under SELinux
-rw-r--r-- | xattr/tests/test_xattr.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xattr/tests/test_xattr.py b/xattr/tests/test_xattr.py index c63a240..c22efec 100644 --- a/xattr/tests/test_xattr.py +++ b/xattr/tests/test_xattr.py @@ -24,6 +24,10 @@ class BaseTestXattr(object): d['SUNWattr_ro'] = x['SUNWattr_ro'] d['SUNWattr_rw'] = x['SUNWattr_rw'] + # SELinux systems use an attribute which must be accounted for + if sys.platform.startswith('linux') and 'security.selinux' in x: + d['security.selinux'] = x['security.selinux'] + self.assertEqual(list(x.keys()), list(d.keys())) self.assertEqual(list(x.list()), list(d.keys())) self.assertEqual(dict(x), d) |