mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-24 03:15:08 -04:00
skip test_hard_link_deletion_and_replacement, #9147, #9153 The test fails on these platforms. I could not find the root cause of this issue, but it is likely a minor problem with ctime and doesn't affect borg usage much. So I rather like to have CI on freebsd/netbsd not failing because of this. tests(diff): on NetBSD only expect mtime for touched file in JSON diff (treat like Windows); completes backport of #9161 to 1.4-maint layout tests(diff): also skip DiffArchiverTestCase.test_multiple_link_exclusion when hardlinks unsupported (include are_hardlinks_supported in skip)
14 lines
406 B
Python
14 lines
406 B
Python
"""
|
|
Flags for platform-specific APIs.
|
|
|
|
Use these flags instead of sys.platform.startswith('<OS>') or try/except.
|
|
"""
|
|
|
|
import sys
|
|
|
|
is_win32 = sys.platform.startswith('win32')
|
|
is_linux = sys.platform.startswith('linux')
|
|
is_freebsd = sys.platform.startswith('freebsd')
|
|
is_netbsd = sys.platform.startswith('netbsd')
|
|
is_openbsd = sys.platform.startswith('openbsd')
|
|
is_darwin = sys.platform.startswith('darwin')
|