1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00

skip the O_NOATIME test on GNU Hurd, fixes #1315

GNU Hurd needs to fix their O_NOATIME, after that we can
re-enable the test on that platform.
This commit is contained in:
Thomas Waldmann 2016-08-15 19:54:40 +02:00
parent a0df0a9494
commit 2a434c3928

View file

@ -362,6 +362,9 @@ def filter(output):
# the interesting parts of info_output2 and info_output should be same
self.assert_equal(filter(info_output), filter(info_output2))
# Search for O_NOATIME there: https://www.gnu.org/software/hurd/contributing.html - we just
# skip the test on Hurd, it is not critical anyway, just testing a performance optimization.
@pytest.mark.skipif(sys.platform == 'gnu0', reason="O_NOATIME is strangely broken on GNU Hurd")
def test_atime(self):
def has_noatime(some_file):
atime_before = os.stat(some_file).st_atime_ns