Browse Source

Merge pull request #4618 from ThomasWaldmann/filter-selinux-xattrs-1.1

filter out selinux xattrs, fixes #4574 (1.1-maint backport)
TW 6 years ago
parent
commit
eaa93e3163
1 changed files with 1 additions and 1 deletions
  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: