filter out selinux xattrs, fixes #4574

This commit is contained in:
Thomas Waldmann 2019-05-21 00:00:07 +02:00
parent bf496d5a66
commit 472bcf507c
1 changed files with 1 additions and 1 deletions

View File

@ -2219,7 +2219,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
# Special case: getxattr returns None (not b'') when reading an empty xattr. # Special case: getxattr returns None (not b'') when reading an empty xattr.
assert xattr.getxattr(out_fn, 'user.empty') is None assert xattr.getxattr(out_fn, 'user.empty') is None
else: else:
assert xattr.listxattr(out_fn) == [] assert no_selinux(xattr.listxattr(out_fn)) == []
try: try:
xattr.getxattr(out_fn, 'user.foo') xattr.getxattr(out_fn, 'user.foo')
except OSError as e: except OSError as e: