提交 e34f42d6 编写于 作者: C Cleber Rosa

N(ext) Runner Job Plugin: make proper use of the test suite

With the introduction of the TestSuite class, this plugin need to use
the right attributes, like `tests` and `size`.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 8e16e4ed
......@@ -77,12 +77,12 @@ class Runner(RunnerInterface):
else:
deadline = None
test_suite, _ = nrunner.check_tasks_requirements(test_suite)
job.result.tests_total = len(test_suite) # no support for variants yet
test_suite.tests, _ = nrunner.check_tasks_requirements(test_suite.tests)
job.result.tests_total = test_suite.size # no support for variants yet
result_dispatcher = job.result_events_dispatcher
no_digits = len(str(len(test_suite)))
for index, task in enumerate(test_suite, start=1):
for index, task in enumerate(test_suite.tests, start=1):
if deadline is not None and time.time() > deadline:
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册