mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
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:
parent
f0f40eb936
commit
b56107dfe4
1 changed files with 1 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue