소스 검색

test_atime: exclude GNU Hurd from this test

It has O_NOATIME, opening doesn't fail with EPERM, but it still updates
the atime of the file.
Marian Beermann 9 년 전
부모
커밋
c07d91e9ca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      borg/testsuite/archiver.py

+ 1 - 1
borg/testsuite/archiver.py

@@ -370,7 +370,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         except PermissionError:
             have_noatime = False
         else:
-            have_noatime = flags_noatime != flags_normal
+            have_noatime = (flags_noatime != flags_normal and sys.platform != 'gnu0')
         os.utime('input/file1', (atime, mtime))
         self.cmd('init', self.repository_location)
         self.cmd('create', self.repository_location + '::test', 'input')