提交 448338fe 编写于 作者: R Rudá Moura 提交者: Cleber Rosa

avocado.job: better output when variants are zero.

Provide a better output when the number of variants of a multiplex
is zero (for a giving set of tests and one multiplex file).

Also, when there is no tests passed, report early.
Signed-off-by: NRuda Moura <rmoura@redhat.com>
上级 5a0efbd6
......@@ -415,6 +415,9 @@ class Job(object):
if urls is not None:
for url in urls:
params_list.append({'id': url})
else:
e_msg = "Empty test ID. A test path or alias must be provided"
raise exceptions.OptionValidationError(e_msg)
if multiplex_file is None:
if self.args and self.args.multiplex_file is not None:
......@@ -438,12 +441,9 @@ class Job(object):
params_list.append(var.environment)
else:
params_list.append({'id': url})
else:
e_msg = "Empty test ID. A test path or alias must be provided"
raise exceptions.OptionValidationError(e_msg)
if not params_list:
e_msg = "Empty test ID. A test path or alias must be provided"
e_msg = "Test(s) with empty parameter list or the number of variants is zero"
raise exceptions.OptionValidationError(e_msg)
if self.args is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册