mirror of https://github.com/borgbackup/borg.git
filter out selinux xattrs, fixes #4574
This commit is contained in:
parent
bf496d5a66
commit
472bcf507c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue