tests: allow omniOS CI runtime dir in test_get_runtime_dir

With TMPDIR=/var/tmp/borg-ci on omniOS, platformdirs' user_runtime_dir
fallback yields /var/tmp/borg-ci/runtime-<uid>/borg. Add it to the
accepted values, like the existing NetBSD CI entry.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Thomas Waldmann 2026-06-09 13:02:22 +02:00
parent f0f40eb936
commit b56107dfe4
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -242,6 +242,7 @@ def test_get_runtime_dir(monkeypatch):
os.path.join("/var/run/user", uid, "borg"),
os.path.join(f"/tmp/runtime-{uid}", "borg"),
os.path.join(f"/mnt/eafs/tmp/runtime-{uid}", "borg"), # CI netbsd
os.path.join(f"/var/tmp/borg-ci/runtime-{uid}", "borg"), # CI omnios (TMPDIR)
]
monkeypatch.setenv("XDG_RUNTIME_DIR", "/var/tmp/.cache")
assert get_runtime_dir(create=False) == os.path.join("/var/tmp/.cache", "borg")