Esempio n. 1
0
def run_protected_plugin_runner(options):
    try:
        plugin_runner = PluginRunner(options)
        exp = plugin_runner.run_plugin_list(options)
        print exp
    except ImportError as e:
        print("Failed to run test as libraries not available (%s)," % (e) +
              " passing test")
        pass
Esempio n. 2
0
def run_protected_plugin_runner_no_process_list(options, plugin, **kwargs):
    try:
        if 'data' in kwargs.keys():
            tu.set_plugin_list(options, plugin, kwargs['data'])
        else:
            tu.set_plugin_list(options, plugin)
        plugin_runner = PluginRunner(options)
        exp = plugin_runner.run_plugin_list(options)
        return exp
    except ImportError as e:
        print("Failed to run test as libraries not available (%s)," % (e) +
              " passing test")
        pass
Esempio n. 3
0
def plugin_runner(options):
    plugin_runner = PluginRunner(options)
    return plugin_runner.run_plugin_list(options)