Files
codex-security/.github/scripts/require_native_python_report.py
Michael D'Angelo 5c0be2444b refactor: clarify Python contracts and simplify scan recovery and reporting (#2340)
* docs: document Python module and function contracts

* refactor: simplify scan recovery and reporting

* test(deep-scan): restore the coordinator stop error import
2026-11-04 15:55:14 -08:00

10 lines
380 B
Python

"""Require at least one test case and zero skipped cases in reports/python.xml."""
from xml.etree import ElementTree
report = ElementTree.parse("reports/python.xml")
if report.find(".//testcase") is None:
raise SystemExit("No native platform tests ran")
if report.find(".//testcase/skipped") is not None:
raise SystemExit("Native platform tests must run without skips")