| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from slave import recipe_api | 5 from recipe_engine import recipe_api |
| 6 | 6 |
| 7 | 7 |
| 8 class Gatekeeper(recipe_api.RecipeApi): | 8 class Gatekeeper(recipe_api.RecipeApi): |
| 9 """Module for Gatekeeper NG.""" | 9 """Module for Gatekeeper NG.""" |
| 10 def __call__(self, gatekeeper_json, gatekeeper_trees_json): | 10 def __call__(self, gatekeeper_json, gatekeeper_trees_json): |
| 11 config = self.m.json.read( | 11 config = self.m.json.read( |
| 12 'reading %s' % self.m.path.basename(gatekeeper_trees_json), | 12 'reading %s' % self.m.path.basename(gatekeeper_trees_json), |
| 13 gatekeeper_trees_json, | 13 gatekeeper_trees_json, |
| 14 ).json.output | 14 ).json.output |
| 15 | 15 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 46 args.extend(tree_args['masters']) | 46 args.extend(tree_args['masters']) |
| 47 | 47 |
| 48 try: | 48 try: |
| 49 self.m.python( | 49 self.m.python( |
| 50 'gatekeeper: %s' % str(tree_name), | 50 'gatekeeper: %s' % str(tree_name), |
| 51 self.m.path['build'].join('scripts', 'slave', 'gatekeeper_ng.py'), | 51 self.m.path['build'].join('scripts', 'slave', 'gatekeeper_ng.py'), |
| 52 args, | 52 args, |
| 53 ) | 53 ) |
| 54 except self.m.step.StepFailure: | 54 except self.m.step.StepFailure: |
| 55 pass | 55 pass |
| OLD | NEW |