Pārlūkot izejas kodu

netbsd: work around failure in test_basic_functionality, #8703

I could not find the root cause of this issue, but it is likely a minor
problem with ctime and doesn't affect borg usage much.

So I rather like to have CI on netbsd not failing because of this.
Thomas Waldmann 1 mēnesi atpakaļ
vecāks
revīzija
1589489bda
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/borg/testsuite/archiver/diff_cmd_test.py

+ 2 - 1
src/borg/testsuite/archiver/diff_cmd_test.py

@@ -176,7 +176,8 @@ def test_basic_functionality(archivers, request):
         assert unexpected not in get_changes("input/file_touched", joutput)
         if not content_only:
             # on win32, ctime is the file creation time and does not change.
-            expected = {"mtime"} if is_win32 else {"mtime", "ctime"}
+            # not sure why netbsd only has mtime, but it does, #8703.
+            expected = {"mtime"} if (is_win32 or is_netbsd) else {"mtime", "ctime"}
             assert expected.issubset({c["type"] for c in get_changes("input/file_touched", joutput)})
         else:
             # And if we're doing content-only, don't show the file at all.