Explorar o código

filter out selinux xattrs, fixes #4574

Thomas Waldmann %!s(int64=6) %!d(string=hai) anos
pai
achega
11bb4eb8fc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/testsuite/archiver.py

+ 1 - 1
src/borg/testsuite/archiver.py

@@ -2242,7 +2242,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
                     assert xattr.getxattr(out_fn, b'user.foo') == b'bar'
                     assert xattr.getxattr(out_fn, b'user.foo') == b'bar'
                     assert xattr.getxattr(out_fn, b'user.empty') == b''
                     assert xattr.getxattr(out_fn, b'user.empty') == b''
                 else:
                 else:
-                    assert xattr.listxattr(out_fn) == []
+                    assert no_selinux(xattr.listxattr(out_fn)) == []
                     try:
                     try:
                         xattr.getxattr(out_fn, b'user.foo')
                         xattr.getxattr(out_fn, b'user.foo')
                     except OSError as e:
                     except OSError as e: