From f749d0dccff664aa3f46c638e880963dcdd49838 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 28 Jun 2022 13:35:36 +0200 Subject: [PATCH] macOS does not support hardlinking symlinks, fixes #6802 --- src/borg/testsuite/archiver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 54c4fdaa4..f7b11206a 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -56,7 +56,7 @@ from ..repository import Repository from . import has_lchflags, llfuse from . import BaseTestCase, changedir, environment_variable, no_selinux from . import are_symlinks_supported, are_hardlinks_supported, are_fifos_supported, is_utime_fully_supported, is_birthtime_fully_supported -from .platform import fakeroot_detected +from .platform import fakeroot_detected, is_darwin from . import key @@ -505,8 +505,8 @@ class ArchiverTestCase(ArchiverTestCaseBase): self.cmd(f'--repo={self.repository_location}', 'extract', 'test') assert os.readlink('input/link1') == 'somewhere' - @pytest.mark.skipif(not are_symlinks_supported() or not are_hardlinks_supported(), - reason='symlinks or hardlinks not supported') + @pytest.mark.skipif(not are_symlinks_supported() or not are_hardlinks_supported() or is_darwin, + reason='symlinks or hardlinks or hardlinked symlinks not supported') def test_hardlinked_symlinks_extract(self): self.create_regular_file('target', size=1024) with changedir('input'):