Pace own positive-login regressions against shared runtime limits
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user