Files
rocm-systems/tests/kernel-tracing/conftest.py
T

21 baris
385 B
Python
Mentah Pandangan Normal Riwayat

2023-11-16 03:21:39 -06:00
#!/usr/bin/env python3
import json
import pytest
def pytest_addoption(parser):
parser.addoption(
"--input",
action="store",
2024-01-09 11:34:46 -06:00
default="kernel-tracing-test.json",
2023-11-16 03:21:39 -06:00
help="Input JSON",
)
@pytest.fixture
def input_data(request):
filename = request.config.getoption("--input")
with open(filename, "r") as inp:
return json.load(inp)