Răsfoiți Sursa

move requires_hardlinks upwards

Thomas Waldmann 4 ani în urmă
părinte
comite
a940ec76bc
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/borg/testsuite/archiver.py

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

@@ -382,6 +382,8 @@ class ArchiverTestCaseBase(BaseTestCase):
 
 
 
 
 class ArchiverTestCase(ArchiverTestCaseBase):
 class ArchiverTestCase(ArchiverTestCaseBase):
+    requires_hardlinks = pytest.mark.skipif(not are_hardlinks_supported(), reason='hardlinks not supported')
+
     def test_basic_functionality(self):
     def test_basic_functionality(self):
         have_root = self.create_test_files()
         have_root = self.create_test_files()
         # fork required to test show-rc output
         # fork required to test show-rc output
@@ -812,8 +814,6 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         self.cmd('init', '--encryption=repokey', self.repository_location)
         self.cmd('init', '--encryption=repokey', self.repository_location)
         self.cmd('create', self.repository_location + '::test', 'input')
         self.cmd('create', self.repository_location + '::test', 'input')
 
 
-    requires_hardlinks = pytest.mark.skipif(not are_hardlinks_supported(), reason='hardlinks not supported')
-
     @requires_hardlinks
     @requires_hardlinks
     @unittest.skipUnless(has_llfuse, 'llfuse not installed')
     @unittest.skipUnless(has_llfuse, 'llfuse not installed')
     def test_fuse_mount_hardlinks(self):
     def test_fuse_mount_hardlinks(self):