Compare commits

..

2 Commits

Author SHA1 Message Date
pzhang_zywl a5f3efc555 fix: subprocess encoding=utf-8 to prevent GBK stdout crash on Windows - Closes #84
CI / test (pull_request) Successful in 10s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 14:39:55 +08:00
pzhang_zywl 5b27f86890 Merge pull request 'fix: [test] QE-Agent session 2026-06-02 收尾:更新 GLOBAL_STATE.md - Closes #82' (#83) from test/issue-82 into main
CI / test (push) Successful in 13s
2026-06-02 20:07:56 +08:00
+5 -1
View File
@@ -83,7 +83,7 @@ def run_ir_pipeline(parsed_path: str) -> str | None:
result = subprocess.run( result = subprocess.run(
[sys.executable, str(script_path)], [sys.executable, str(script_path)],
cwd=str(PROJECT_ROOT), cwd=str(PROJECT_ROOT),
capture_output=True, text=True, capture_output=True, text=True, encoding="utf-8",
env=env, env=env,
) )
if result.returncode != 0: if result.returncode != 0:
@@ -111,6 +111,8 @@ def run_acceptance_tests(parsed_json_path: str) -> int:
print("[3/3] Running QE acceptance tests...") print("[3/3] Running QE acceptance tests...")
test_dir = PROJECT_ROOT / "tests" / "acceptance" test_dir = PROJECT_ROOT / "tests" / "acceptance"
env = os.environ.copy()
env.setdefault("PYTHONIOENCODING", "utf-8")
result = subprocess.run( result = subprocess.run(
[ [
sys.executable, "-m", "pytest", str(test_dir), sys.executable, "-m", "pytest", str(test_dir),
@@ -120,6 +122,8 @@ def run_acceptance_tests(parsed_json_path: str) -> int:
"--tb=short", "--tb=short",
], ],
cwd=str(PROJECT_ROOT), cwd=str(PROJECT_ROOT),
encoding="utf-8",
env=env,
) )
return result.returncode return result.returncode