From 73c04398f30cf9ce294f73597fed333e06ca6889 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 3 Jan 2021 17:55:45 +0100 Subject: [PATCH] move requires_hardlinks upwards --- src/borg/testsuite/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 00751d472..5f64b39f8 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -381,6 +381,8 @@ class ArchiverTestCaseBase(BaseTestCase): class ArchiverTestCase(ArchiverTestCaseBase): + requires_hardlinks = pytest.mark.skipif(not are_hardlinks_supported(), reason='hardlinks not supported') + def test_basic_functionality(self): have_root = self.create_test_files() # fork required to test show-rc output @@ -811,8 +813,6 @@ class ArchiverTestCase(ArchiverTestCaseBase): self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') - requires_hardlinks = pytest.mark.skipif(not are_hardlinks_supported(), reason='hardlinks not supported') - @requires_hardlinks @unittest.skipUnless(llfuse, 'llfuse not installed') def test_fuse_mount_hardlinks(self):