19 list_path = metafunc.config.getoption(
'test_list')
20 bin_dir = metafunc.config.getoption(
'bin_dir')
21 circle_part_driver = metafunc.config.getoption(
'circle_part_driver')
23 with open(list_path)
as f:
24 contents = [line.rstrip()
for line
in f]
26 comment_removed = [line
for line
in contents
if not line.startswith(
'#')]
27 newline_removed = [line
for line
in comment_removed
if line.startswith(
'add(')]
30 partition_list = [(arg.split()[1], bin_dir, circle_part_driver)
for arg
in test_args]
32 if 'test_name' in metafunc.fixturenames:
33 metafunc.parametrize(
'test_name,bin_dir,part_driver_path', partition_list)