mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-24 03:15:08 -04:00
cygwin: skip ~root base dir test
This commit is contained in:
parent
5070066c3b
commit
2b5bca41aa
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ from ...helpers.fs import (
|
|||
make_path_safe,
|
||||
map_chars,
|
||||
)
|
||||
from ...platform import is_win32, is_darwin, is_haiku
|
||||
from ...platform import is_win32, is_darwin, is_haiku, is_cygwin
|
||||
from .. import are_hardlinks_supported
|
||||
from .. import rejected_dotdot_paths
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ def test_get_base_dir(monkeypatch):
|
|||
monkeypatch.delenv("USER", raising=False)
|
||||
assert get_base_dir(legacy=True) == os.path.expanduser("~")
|
||||
# Haiku OS is a single-user OS, expanding "~root" is not supported.
|
||||
if not is_haiku:
|
||||
if not (is_haiku or is_cygwin):
|
||||
monkeypatch.setenv("USER", "root")
|
||||
assert get_base_dir(legacy=True) == os.path.expanduser("~root")
|
||||
monkeypatch.setenv("HOME", "/var/tmp/home")
|
||||
|
|
|
|||
Loading…
Reference in a new issue