From b56107dfe47d229a4469e42ef9cc082e61d2665c Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 9 Jun 2026 13:02:22 +0200 Subject: [PATCH] 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-/borg. Add it to the accepted values, like the existing NetBSD CI entry. Co-Authored-By: Claude Opus 4.8 --- src/borg/testsuite/helpers/fs_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/borg/testsuite/helpers/fs_test.py b/src/borg/testsuite/helpers/fs_test.py index ae3af53d2..dcad7969b 100644 --- a/src/borg/testsuite/helpers/fs_test.py +++ b/src/borg/testsuite/helpers/fs_test.py @@ -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")