Merge "Stop test execution in case of an plugin error"

Jenkins 2015-07-16 07:39:07 +00:00 committed by Gerrit Code Review
commit 0db5946fd4
1 changed files with 11 additions and 1 deletions

View File

@ -13,12 +13,16 @@
# under the License.
import abc
import logging
import six
import stevedore
from tempest_lib.common.utils import misc
LOG = logging.getLogger(__name__)
class TempestPlugin(object):
"""A TempestPlugin class provides the basic hooks for an external
@ -47,7 +51,13 @@ class TempestTestPluginManager(object):
def __init__(self):
self.ext_plugins = stevedore.ExtensionManager(
'tempest.test_plugins', invoke_on_load=True,
def failure_hook(_, ep, err):
LOG.error('Could not load %r: %s',, err)
raise err
def get_plugin_load_tests_tuple(self):
load_tests_dict = {}