From 1589489bdae5356998c407494bc68a38c01b71df Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 9 Nov 2025 19:47:10 +0100 Subject: [PATCH] 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. --- src/borg/testsuite/archiver/diff_cmd_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/testsuite/archiver/diff_cmd_test.py b/src/borg/testsuite/archiver/diff_cmd_test.py index 3f6b7326e..f726773e7 100644 --- a/src/borg/testsuite/archiver/diff_cmd_test.py +++ b/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.