mirror of
https://github.com/ROCm/jax.git
synced 2025-04-14 10:56:06 +00:00
Add back raw totals in JSON reports (#281)
This commit is contained in:
parent
b505df9973
commit
13d88b6340
1
.github/workflows/rocm-ci.yml
vendored
1
.github/workflows/rocm-ci.yml
vendored
@ -60,7 +60,6 @@ jobs:
|
|||||||
path: ./dist/*.whl
|
path: ./dist/*.whl
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
ROCM_TEST_INCLUDE_SKIPS: "1"
|
|
||||||
GPU_COUNT: "8"
|
GPU_COUNT: "8"
|
||||||
GFX: "gfx90a"
|
GFX: "gfx90a"
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,14 +1,8 @@
|
|||||||
import os
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
INCLUDE_SKIPS = os.getenv("ROCM_TEST_INCLUDE_SKIPS", default=False)
|
|
||||||
|
|
||||||
@pytest.hookimpl(optionalhook=True)
|
@pytest.hookimpl(optionalhook=True)
|
||||||
def pytest_json_modifyreport(json_report):
|
def pytest_json_modifyreport(json_report):
|
||||||
"""Get rid of skipped tests in reporting. We only care about xfails."""
|
"""Get rid of skipped tests in reporting. We only care about xfails."""
|
||||||
if (not INCLUDE_SKIPS
|
if "summary" in json_report and "total" in json_report["summary"]:
|
||||||
and "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)
|
json_report["summary"]["unskipped_total"] = json_report["summary"]["total"] - json_report["summary"].get("skipped", 0)
|
||||||
del json_report["summary"]["total"]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user