mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-12 18:30:18 -04:00
testsuite: archiver: diff_cmd: ignore modes
Windows does not have file modes.
This commit is contained in:
parent
d8e8247c6d
commit
12245761c0
1 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import unittest
|
|||
|
||||
from ...constants import * # NOQA
|
||||
from .. import are_symlinks_supported, are_hardlinks_supported
|
||||
from ..platform import is_win32
|
||||
from . import ArchiverTestCaseBase, RemoteArchiverTestCaseBase, ArchiverTestCaseBinaryBase, RK_ENCRYPTION, BORG_EXES
|
||||
|
||||
|
||||
|
|
@ -79,7 +80,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|||
assert "input/file_unchanged" not in output
|
||||
|
||||
# Directory replaced with a regular file
|
||||
if "BORG_TESTS_IGNORE_MODES" not in os.environ:
|
||||
if "BORG_TESTS_IGNORE_MODES" not in os.environ and not is_win32:
|
||||
assert "[drwxr-xr-x -> -rwxr-xr-x] input/dir_replaced_with_file" in output
|
||||
|
||||
# Basic directory cases
|
||||
|
|
@ -153,7 +154,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|||
assert not any(get_changes("input/file_unchanged", joutput))
|
||||
|
||||
# Directory replaced with a regular file
|
||||
if "BORG_TESTS_IGNORE_MODES" not in os.environ:
|
||||
if "BORG_TESTS_IGNORE_MODES" not in os.environ and not is_win32:
|
||||
assert {"type": "mode", "old_mode": "drwxr-xr-x", "new_mode": "-rwxr-xr-x"} in get_changes(
|
||||
"input/dir_replaced_with_file", joutput
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue