OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 from recipe_engine import recipe_api | |
6 | |
7 class PresubmitApi(recipe_api.RecipeApi): | |
8 def __call__(self, *args, **kwargs): | |
9 """Return a presubmit step.""" | |
10 name = kwargs.pop('name', 'presubmit') | |
11 return self.m.python( | |
12 name, self.package_resource('presubmit_support.py'), list(args), | |
13 **kwargs) | |
OLD | NEW |