mirror of
https://github.com/ROCm/jax.git
synced 2025-04-14 10:56:06 +00:00
9 lines
369 B
Python
9 lines
369 B
Python
import pytest
|
|
|
|
|
|
@pytest.hookimpl(optionalhook=True)
|
|
def pytest_json_modifyreport(json_report):
|
|
"""Get rid of skipped tests in reporting. We only care about xfails."""
|
|
if "summary" in json_report and "total" in json_report["summary"]:
|
|
json_report["summary"]["unskipped_total"] = json_report["summary"]["total"] - json_report["summary"].get("skipped", 0)
|