From ed87f8db0443d04fd4b8ffb3d51f066f66cb1c51 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 25 Sep 2026 20:30:48 -0700 Subject: [PATCH] Fall Back to the Default Search Path in the Archived End-to-End Test EndToEndCase put its gh stub first on a PATH built from os.environ.get('PATH', ''), so with PATH unset the copied configure.sh ran with only the stub directory and could not find jq, although require() had found it through the default search path. It now falls back to os.defpath, as the dotnet-leg test does. Raised by Copilot on the promotion PR #1850. Co-Authored-By: Claude Opus 5.5 (1M context) --- scripts/tests/test_configure_archived.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/test_configure_archived.py b/scripts/tests/test_configure_archived.py index 6cd76e15..e24cf161 100755 --- a/scripts/tests/test_configure_archived.py +++ b/scripts/tests/test_configure_archived.py @@ -165,7 +165,7 @@ def run_configure(self, status: str, cmd: str) -> subprocess.CompletedProcess[st encoding="utf-8", ) gh_stub.chmod(0o755) - env = dict(os.environ, PATH=f"{root / 'bin'}:{os.environ.get('PATH', '')}") + env = dict(os.environ, PATH=f"{root / 'bin'}:{os.environ.get('PATH', os.defpath)}") return subprocess.run( [bash, str(root / "repo-config" / "configure.sh"), cmd, "owner/Fixture"], capture_output=True,