mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-05 06:40:10 -04:00
fix test_extract_continue for hfs timestamp granularity
This commit is contained in:
parent
863bd8a4f4
commit
0744b7a241
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import errno
|
||||
import os
|
||||
import shutil
|
||||
import time
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
@ -643,6 +644,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|||
# make a hardlink, so it does not free the inode when unlinking input/file3
|
||||
os.link("input/file3", "hardlink-to-keep-inode-f3")
|
||||
os.remove("input/file3")
|
||||
time.sleep(1) # needed due to timestamp granularity of apple hfs+
|
||||
with changedir("output"):
|
||||
# now try to continue extracting, using the same archive, same output dir:
|
||||
self.cmd(f"--repo={self.repository_location}", "extract", "arch", "--continue")
|
||||
|
|
|
|||
Loading…
Reference in a new issue