| import os |
| |
| from slave import base_recipe |
| from slave.step import x86_camera_step |
| |
| |
| def GetValidBuildNames(): |
| return ['newman_x86_64-eng', 'newman_x64-eng'] |
| |
| |
| def CreateRecipe(build_name: str, **kwargs): |
| del build_name |
| return ReconnectProxyRecipe(**kwargs) |
| |
| |
| class ReconnectProxyRecipe(base_recipe.BaseRecipe): |
| """ Recipe for build/run reconnect proxy test""" |
| |
| def __init__(self, **kwargs): |
| base_recipe.BaseRecipe.__init__(self, **kwargs) |
| # newman_x86_64 --> newman |
| product = self.buildername[:self.buildername.find('_')] |
| self._step_kwargs.update({ |
| 'product': product |
| }) |
| |
| def get_steps(self): |
| |
| return [ |
| x86_camera_step.BuildReconnectProxyTestStep( |
| **self._step_kwargs), |
| x86_camera_step.RunReconnectTestsStep( |
| **self._step_kwargs), |
| ] |