Add back raw totals in JSON reports (#281)

This commit is contained in:
charleshofer 2025-03-24 11:26:31 -05:00 committed by GitHub
parent b505df9973
commit 13d88b6340
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View File

@ -60,7 +60,6 @@ jobs:
path: ./dist/*.whl
- name: Run tests
env:
ROCM_TEST_INCLUDE_SKIPS: "1"
GPU_COUNT: "8"
GFX: "gfx90a"
run: |

View File

@ -1,14 +1,8 @@
import os
import pytest
INCLUDE_SKIPS = os.getenv("ROCM_TEST_INCLUDE_SKIPS", default=False)
@pytest.hookimpl(optionalhook=True)
def pytest_json_modifyreport(json_report):
"""Get rid of skipped tests in reporting. We only care about xfails."""
if (not INCLUDE_SKIPS
and "summary" in json_report
and "total" in json_report["summary"]):
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)
del json_report["summary"]["total"]