コード例 #1
0
ファイル: plugin_runner_test.py プロジェクト: r-atwood/Savu
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
ファイル: plugin_runner_test.py プロジェクト: r-atwood/Savu
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)