blob: cfa5b376872157b8493dcbec41167589ce7ee76f [file]
"""Recipe for running lucicfg validation."""
from slave import base_recipe
from slave.step import lucicfg_step
def GetValidBuildNames():
return ['lucicfg_validate']
def CreateRecipe(build_name: str, **kwargs):
del build_name
return LucicfgRecipe(**kwargs)
class LucicfgRecipe(base_recipe.BaseRecipe):
"""Recipe to run lucicfg validation."""
def get_steps(self):
return [
lucicfg_step.FindConfigsStep(**self._step_kwargs),
lucicfg_step.LucicfgValidateStep(**self._step_kwargs)
]