Pace own positive-login regressions against shared runtime limits

This commit is contained in:
2026-11-16 11:59:43 +03:00
parent e5039231c3
commit 9535c07b40
3 changed files with 44 additions and 1 deletions
+4
View File
@@ -14,6 +14,10 @@ def run(args, *, output=None):
result = subprocess.run(args, cwd=ROOT, check=True, capture_output=True, text=True)
if output:
(ROOT / "evidence" / output).write_text(result.stdout)
if output.endswith(".json"):
record = json.loads(result.stdout)
if record.get("passed") is False:
raise RuntimeError("Security probe reported a failed invariant: " + output)
else:
print(result.stdout, end="")
return result.stdout