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.
This commit is contained in:
Thomas Waldmann 2025-11-09 19:47:10 +01:00
parent b929e0c5af
commit 1589489bda
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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.