fix test_extract_continue for hfs timestamp granularity

This commit is contained in:
Thomas Waldmann 2023-05-17 00:19:42 +02:00
parent 863bd8a4f4
commit 0744b7a241
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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")