Browse Source

skip fuse test for borg binary + fakeroot

strange: works on wheezy, blows up on xenial
Thomas Waldmann 8 năm trước cách đây
mục cha
commit
f9aa74e7e1
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      borg/testsuite/archiver.py

+ 7 - 0
borg/testsuite/archiver.py

@@ -27,6 +27,7 @@ from ..keymanager import RepoIdMismatch, NotABorgKeyFile
 from ..remote import RemoteRepository, PathNotAllowed
 from ..repository import Repository
 from . import BaseTestCase, changedir, environment_variable, no_selinux
+from .platform import fakeroot_detected
 
 try:
     import llfuse
@@ -1316,6 +1317,12 @@ class ArchiverTestCaseBinary(ArchiverTestCase):
     def test_overwrite(self):
         pass
 
+    def test_fuse(self):
+        if fakeroot_detected():
+            unittest.skip('test_fuse with the binary is not compatible with fakeroot')
+        else:
+            super().test_fuse()
+
 
 class ArchiverCheckTestCase(ArchiverTestCaseBase):