예제 #1
0
파일: models.py 프로젝트: tarsbase/squad-2
 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())
예제 #2
0
 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())
예제 #3
0
파일: models.py 프로젝트: Linaro/squad
 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())
예제 #4
0
파일: __init__.py 프로젝트: Linaro/squad
 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())
예제 #5
0
파일: test_plugin.py 프로젝트: Linaro/squad
 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)
예제 #6
0
 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)