mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
testsuite: archiver: skip test_file_status_cs_cache_mode on Windows
On Windows, the ctime attribute of stat represents the time of creation, unlike Unix. See https://docs.python.org/3/library/os.html#os.stat_result.st_ctime
This commit is contained in:
parent
12245761c0
commit
fff2c21e65
1 changed files with 3 additions and 0 deletions
|
@ -547,6 +547,9 @@ def test_file_status(self):
|
|||
# https://borgbackup.readthedocs.org/en/latest/faq.html#i-am-seeing-a-added-status-for-a-unchanged-file
|
||||
self.assert_in("A input/file2", output)
|
||||
|
||||
@pytest.mark.skipif(
|
||||
is_win32, reason="ctime attribute is file creation time on Windows"
|
||||
) # see https://docs.python.org/3/library/os.html#os.stat_result.st_ctime
|
||||
def test_file_status_cs_cache_mode(self):
|
||||
"""test that a changed file with faked "previous" mtime still gets backed up in ctime,size cache_mode"""
|
||||
self.create_regular_file("file1", contents=b"123")
|
||||
|
|
Loading…
Reference in a new issue