mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
7777603e8b
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
13 lines
371 B
Python
13 lines
371 B
Python
import glob
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption("--suite-dir", help="suite dir")
|
|
|
|
def pytest_generate_tests(metafunc):
|
|
if "yaml_file" in metafunc.fixturenames:
|
|
suite_dir = metafunc.config.getoption("--suite-dir")
|
|
files = glob.glob(f"{suite_dir}/**/*.yaml", recursive=True)
|
|
|
|
metafunc.parametrize("yaml_file", list(set(files)))
|