mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-04 10:39:50 +00:00
hfs+ filesystem (darwin64 VM) has 1s ts granularity, fixes #7387
This commit is contained in:
parent
6160c0918f
commit
98338f4cc0
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ import pytest
|
|||
from ... import platform
|
||||
from ...constants import * # NOQA
|
||||
from ...manifest import Manifest
|
||||
from ...platform import is_cygwin, is_win32
|
||||
from ...platform import is_cygwin, is_win32, is_darwin
|
||||
from ...repository import Repository
|
||||
from .. import has_lchflags
|
||||
from .. import changedir
|
||||
|
@ -713,7 +713,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|||
assert result["Modified files"] == 0
|
||||
# Archive a dir with two added files
|
||||
self.create_regular_file("testfile1", contents=b"test1")
|
||||
time.sleep(0.01) # testfile2 must have newer timestamps than testfile1
|
||||
time.sleep(1.0 if is_darwin else 0.01) # testfile2 must have newer timestamps than testfile1
|
||||
self.create_regular_file("testfile2", contents=b"test2")
|
||||
result = self.cmd(f"--repo={self.repository_location}", "create", "--stats", "test_archive2", self.input_path)
|
||||
result = to_dict(result)
|
||||
|
|
Loading…
Add table
Reference in a new issue