Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import unittest
# A git hook's GIT_DIR, the host's BUILD_RELEASE_* or PYTHONPATH would point the program under test at the host's own state,
# and the host's CLAUDE_CODE_SANDBOXED would hide whether build-release sets it.
def isolated_env() -> dict[str, str]:
return {name: value for name, value in os.environ.items() if not name.startswith(("GIT_", "BUILD_RELEASE_", "PYTHON")) and name != "CLAUDE_CODE_SANDBOXED"}
return {name: value for name, value in os.environ.items() if not name.startswith(("GIT_", "BUILD_RELEASE_", "PYTHON")) and name not in ("CLAUDE_CODE_SANDBOXED", "XDG_CONFIG_HOME", "XDG_STATE_HOME")}
# Call it first in a test that takes a file's or a folder's permissions away.