예제 #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
예제 #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
예제 #3
0
파일: test_utils.py 프로젝트: r-atwood/Savu
def plugin_runner(options):
    plugin_runner = PluginRunner(options)
    return plugin_runner.run_plugin_list(options)