Files
rocm-systems/tests/hip-graph-tracing/conftest.py
T

21 lines
388 B
Python
Raw Normal View History

2024-05-07 15:10:22 -05:00
#!/usr/bin/env python3
import json
import pytest
def pytest_addoption(parser):
parser.addoption(
"--input",
action="store",
default="hip-graph-tracing-test.json",
help="Input JSON",
)
@pytest.fixture
def input_data(request):
filename = request.config.getoption("--input")
with open(filename, "r") as inp:
return json.load(inp)