Merge pull request #9126 from ThomasWaldmann/backport/6e191593-to-1.2-maint
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / pytest (macos-14, 3.11, py311-none) (push) Has been cancelled
CI / pytest (ubuntu-22.04, 3.10, py310-fuse3) (push) Has been cancelled
CI / pytest (ubuntu-22.04, 3.11, py311-fuse2) (push) Has been cancelled
CI / pytest (ubuntu-22.04, 3.8, py38-fuse2) (push) Has been cancelled
CI / pytest (ubuntu-22.04, 3.9, py39-fuse3) (push) Has been cancelled
CI / pytest (ubuntu-24.04, 3.12, py312-fuse3) (push) Has been cancelled

tests: run test_extract_restores_append_flag also on freebsd
This commit is contained in:
TW 2025-11-01 19:44:24 +01:00 committed by GitHub
commit d23dcea81a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ from ..repository import Repository
from . import has_lchflags, llfuse
from . import BaseTestCase, changedir, environment_variable, no_selinux, same_ts_ns
from . import are_symlinks_supported, are_hardlinks_supported, are_fifos_supported, is_utime_fully_supported, is_birthtime_fully_supported
from .platform import fakeroot_detected, is_darwin, is_win32
from .platform import fakeroot_detected, is_darwin, is_freebsd, is_win32
from .upgrader import make_attic_repo
from . import key
@ -1521,7 +1521,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
assert same_ts_ns(mtime_extracted, mtime_expected)
# assert same_ts_ns(atime_extracted, atime_expected) # still broken, but not really important.
@pytest.mark.skipif(not is_darwin, reason='only for macOS')
@pytest.mark.skipif(not (is_darwin or is_freebsd), reason='only for macOS')
def test_extract_restores_append_flag(self):
if not has_lchflags or not hasattr(stat, 'UF_APPEND'):
pytest.skip('BSD flags or UF_APPEND not supported on this platform')