Skip to content

Commit

Permalink
Merge remote-tracking branch 'lmr/plugin-fail-mechanics'
Browse files Browse the repository at this point in the history
  • Loading branch information
clebergnu committed Jun 1, 2015
2 parents ae61691 + 4309884 commit 88b9c8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions avocado/core/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
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
Expand Down Expand Up @@ -320,6 +323,11 @@ def _run(self, urls=None):
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('')

Expand Down
1 change: 1 addition & 0 deletions avocado/core/plugins/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__:
Expand Down

0 comments on commit 88b9c8c

Please sign in to comment.