From 0744b7a241bf14a0ce02064844ff1d6b17b2cfc0 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 17 May 2023 00:19:42 +0200 Subject: [PATCH] fix test_extract_continue for hfs timestamp granularity --- src/borg/testsuite/archiver/extract_cmd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/borg/testsuite/archiver/extract_cmd.py b/src/borg/testsuite/archiver/extract_cmd.py index e6bcaf2f8..b6ebe9610 100644 --- a/src/borg/testsuite/archiver/extract_cmd.py +++ b/src/borg/testsuite/archiver/extract_cmd.py @@ -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")