]> git.proxmox.com Git - ceph.git/blob - ceph/qa/tasks/tests/conftest.py
import quincy beta 17.1.0
[ceph.git] / ceph / qa / tasks / tests / conftest.py
1 import glob
2
3
4 def pytest_addoption(parser):
5 parser.addoption("--suite-dir", help="suite dir")
6
7 def pytest_generate_tests(metafunc):
8 if "yaml_file" in metafunc.fixturenames:
9 suite_dir = metafunc.config.getoption("--suite-dir")
10 files = glob.glob(f"{suite_dir}/**/*.yaml", recursive=True)
11
12 metafunc.parametrize("yaml_file", list(set(files)))