"""Recipe for running a gn check on the given build.""" | |
from slave import base_recipe | |
from slave.step import gn_check_step | |
def GetValidBuildNames(): | |
return ['gn_check'] | |
def CreateRecipe(build_name: str, **kwargs): | |
"""Builds a recipe object.""" | |
del build_name # Unused. | |
return GnCheckRecipe(**kwargs) | |
class GnCheckRecipe(base_recipe.BaseRecipe): | |
"""Recipe to gn check a change.""" | |
def get_steps(self): | |
return [ | |
gn_check_step.GnCheckStep(**self._step_kwargs) | |
] |