From 2a434c3928d3145385d3ec71b6513096ee8ce1fc Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 15 Aug 2016 19:54:40 +0200 Subject: [PATCH] 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. --- borg/testsuite/archiver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/borg/testsuite/archiver.py b/borg/testsuite/archiver.py index f1f70fcdc..4591a1b23 100644 --- a/borg/testsuite/archiver.py +++ b/borg/testsuite/archiver.py @@ -362,6 +362,9 @@ class ArchiverTestCase(ArchiverTestCaseBase): # 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