From f792322855200f650ca02144cd2b348adc5ba282 Mon Sep 17 00:00:00 2001 From: Song Jeyeong <46372718+hooreique@users.noreply.github.com> Date: Sun, 20 Sep 2026 08:36:03 +0900 Subject: [PATCH] Fix integration test paths on macOS --- test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 0cf679a..fec7599 100644 --- a/test.py +++ b/test.py @@ -19,7 +19,8 @@ def encode(path): with tempfile.TemporaryDirectory(prefix='fall-test-') as temporary: - root = Path(temporary) + # Match the physical cwd reported by Nushell (macOS temp paths use /var aliases). + root = Path(temporary).resolve() home = root / 'home' home.mkdir() env = {**os.environ, 'HOME': str(home), 'GIT_CONFIG_NOSYSTEM': '1', 'GIT_CONFIG_GLOBAL': '/dev/null'} @@ -63,7 +64,7 @@ def write(content): ('test', '.'): ('absolute path first', 'relative', 'Exit 0', 'Exit 1', '100 lines', 'config or state files'), } with tempfile.TemporaryDirectory(prefix='fall-help-') as help_temporary: - help_root = Path(help_temporary) + help_root = Path(help_temporary).resolve() help_home = help_root / 'home' help_home.mkdir() help_cwd = help_root / 'project/nested'