提交 88b9c8ce 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'lmr/plugin-fail-mechanics'

......@@ -43,6 +43,9 @@ from avocado.utils import archive
from avocado.utils import path
from avocado.settings import settings
from avocado.core.plugins.builtin import ErrorsLoading
try:
from avocado.core.plugins import htmlresult
HTML_REPORT_SUPPORT = True
......@@ -320,6 +323,11 @@ class Job(object):
self.view.start_file_logging(self.logfile,
self.loglevel,
self.unique_id)
for plugin_failed in ErrorsLoading:
_TEST_LOGGER.error('Error loading %s -> %s' % plugin_failed)
_TEST_LOGGER.error('')
_TEST_LOGGER.info('Job ID: %s', self.unique_id)
_TEST_LOGGER.info('')
......
......@@ -52,6 +52,7 @@ def load_builtins():
except Exception as err:
name = str(module)
reason = '%s %s' % (str(err.__class__.__name__), err)
log.error('Error loading %s -> %s', name, reason)
ErrorsLoading.append((name, reason))
continue
for name in plugin_mod.__dict__:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册