+5








e126687a9a
Signed-off-by: huanghaoyan.hhy <huanghaoyan.hhy@alibaba-inc.com> Signed-off-by: andyluo7 <andy.luo@amd.com> Signed-off-by: lishunyang12 <lishunyang03@gmail.com> Signed-off-by: Harry Huang <huanghaoyan.hhy@alibaba-inc.com> Signed-off-by: Thien Tran <gau.nernst@yahoo.com.sg> Signed-off-by: Isotr0py <Isotr0py@outlook.com> Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com> Signed-off-by: Yifan Qiao <yifanqiao@inferact.ai> Signed-off-by: zjy0516 <riverclouds.zhu@qq.com> Co-authored-by: zjy0516 <riverclouds.zhu@qq.com> Co-authored-by: KungYork <firelikest@163.com> Co-authored-by: Thien Tran <gau.nernst@yahoo.com.sg> Co-authored-by: Yifan Qiao <yifanqiao@inferact.ai> Co-authored-by: andyluo7 <43718156+andyluo7@users.noreply.github.com> Co-authored-by: Isotr0py <mozf@inferact.ai> Co-authored-by: andyluo7 <andy.luo@amd.com> Co-authored-by: OpenAI Codex <noreply@openai.com> Co-authored-by: lishunyang12 <lishunyang03@gmail.com> Co-authored-by: Vadim Gimpelson <156319763+vadiklyutiy@users.noreply.github.com> Co-authored-by: Isotr0py <Isotr0py@outlook.com> Co-authored-by: Lucas Wilkinson <lwilkins@redhat.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: OpenAI Codex <codex@openai.com>
43 lines
1.3 KiB
Python
43 lines
1.3 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption(
|
|
"--config-list-file",
|
|
required=True,
|
|
help="File containing Qwen4Exp evaluation config files",
|
|
)
|
|
|
|
|
|
def pytest_generate_tests(metafunc):
|
|
if "config_filename" not in metafunc.fixturenames:
|
|
return
|
|
|
|
config_list_path = Path(metafunc.config.getoption("--config-list-file"))
|
|
if not config_list_path.is_absolute():
|
|
test_relative_path = Path(__file__).parent / config_list_path
|
|
config_list_path = (
|
|
test_relative_path
|
|
if test_relative_path.exists()
|
|
else Path.cwd() / config_list_path
|
|
)
|
|
|
|
config_dir = config_list_path.parent
|
|
config_files = [
|
|
config_dir / line.strip()
|
|
for line in config_list_path.read_text(encoding="utf-8").splitlines()
|
|
if line.strip() and not line.lstrip().startswith("#")
|
|
]
|
|
missing = [path for path in config_files if not path.exists()]
|
|
if missing:
|
|
raise FileNotFoundError(f"Missing evaluation configs: {missing}")
|
|
|
|
metafunc.parametrize(
|
|
"config_filename",
|
|
config_files,
|
|
ids=[config_file.stem for config_file in config_files],
|
|
)
|