未验证 提交 674b0768 编写于 作者: A Amador Pahim

Merge branch 'ldoktor-mux-suite-tweaks'

Signed-off-by: NAmador Pahim <apahim@redhat.com>
......@@ -105,7 +105,10 @@ class YamlTestsuiteLoader(loader.TestLoader):
for variant in mux_tree:
params = parameters.AvocadoParams(variant, ["/run/*"],
output.LOG_JOB.name)
reference = params.get("test_reference")
references = params.get("test_reference")
if not isinstance(references, (list, tuple)):
references = [references]
for reference in references:
test_loader = self._get_loader(params)
if not test_loader:
continue
......@@ -116,6 +119,8 @@ class YamlTestsuiteLoader(loader.TestLoader):
test_loader.get_full_decorator_mapping())
name_prefix = params.get("mux_suite_test_name_prefix")
if _tests:
if isinstance(name_prefix, list):
name_prefix = "".join(name_prefix)
for tst in _tests:
if name_prefix:
tst[1]["name"] = name_prefix + tst[1]["name"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册