Explorar el Código

filter out selinux xattrs, fixes #4574

Thomas Waldmann hace 6 años
padre
commit
472bcf507c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/borg/testsuite/archiver.py

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

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