Name the CLI refusal check concretely

This commit is contained in:
wassname committed 2026-09-19 13:13:35 +08:00
1 parent 6cd04c28fb
commit be9b8cd1db
1 file changed
+2 -2
+2 -2
View File
@@ -594,8 +594,8 @@ def offline_regression(battery: list[dict]) -> None:
capture_output=True, text=True, timeout=600,
cwd=str(Path(__file__).parent.parent))
assert proc.returncode != 0 and "--i-authorize-paid-calls" in (proc.stderr + proc.stdout), (
f"CLI gate failed: rc={proc.returncode} stdout={proc.stdout[-500:]} stderr={proc.stderr[-500:]}")
print("offline regression passed: guard, mis-patch defense, and CLI gate all hold")
f"CLI refusal check failed: rc={proc.returncode} stdout={proc.stdout[-500:]} stderr={proc.stderr[-500:]}")
print("offline regression passed: opt-in guard, mis-patch defense, and CLI refusal check all hold")
def paid_smoke(battery: list[dict]) -> None: