Skip to content

Commit ef60cdd

Browse files
committed
fix(test): 屏蔽 XDG_CONFIG_HOME 干扰
1 parent 5bb51bc commit ef60cdd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_openspec_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def run_aisee(root: Path, *args: str, path_prefix: Path) -> subprocess.Completed
1818
env["PYTHONPATH"] = str(repo_src)
1919
env["PATH"] = f"{path_prefix}{os.pathsep}{env['PATH']}"
2020
env["HOME"] = str(root.parent / "home")
21+
env.pop("XDG_CONFIG_HOME", None)
2122
return subprocess.run(
2223
[sys.executable, "-m", "aisee_cli.__main__", *args],
2324
cwd=root,

0 commit comments

Comments
 (0)