def __postprocess_testjob__(self, test_job): project = test_job.target for plugin in apply_plugins(project.enabled_plugins): try: plugin.postprocess_testjob(test_job) except Exception as e: logger.error("Plugin postprocessing error: " + str(e) + "\n" + traceback.format_exc())
def __call__(self, testrun): project = testrun.build.project for plugin in apply_plugins(project.enabled_plugins): try: self.__call_plugin__(plugin, testrun) except Exception as e: logger.error("Plugin postprocessing error: " + str(e) + "\n" + traceback.format_exc())
def test_skips_nonexisting_plugins(self): plugins = [] for plugin in apply_plugins(['example', 'nonexisting']): plugins.append(plugin) self.assertEqual(1, len(plugins)) self.assertIsInstance(plugins[0], Plugin)