| 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 slave import recipe_api |
| 6 | 6 |
| 7 | 7 |
| 8 class IsolateApi(recipe_api.RecipeApi): | 8 class IsolateApi(recipe_api.RecipeApi): |
| 9 """APIs for interacting with isolates.""" | 9 """APIs for interacting with isolates.""" |
| 10 | 10 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 args=args, | 267 args=args, |
| 268 cwd=self.m.path['slave_build']) | 268 cwd=self.m.path['slave_build']) |
| 269 except self.m.step.StepFailure: | 269 except self.m.step.StepFailure: |
| 270 step_result = self.m.step.active_result | 270 step_result = self.m.step.active_result |
| 271 step_result.presentation.status = self.m.step.WARNING | 271 step_result.presentation.status = self.m.step.WARNING |
| 272 | 272 |
| 273 def compare_build_artifacts(self, first_dir, second_dir): | 273 def compare_build_artifacts(self, first_dir, second_dir): |
| 274 """Compare the artifacts from 2 builds.""" | 274 """Compare the artifacts from 2 builds.""" |
| 275 args = [ | 275 args = [ |
| 276 '--first-build-dir', first_dir, | 276 '--first-build-dir', first_dir, |
| 277 '--second-build-dir', second_dir | 277 '--second-build-dir', second_dir, |
| 278 '--target-platform', self.m.chromium.c.TARGET_PLATFORM |
| 278 ] | 279 ] |
| 279 self.m.python('compare_build_artifacts', | 280 self.m.python('compare_build_artifacts', |
| 280 self.resource('compare_build_artifacts.py'), | 281 self.resource('compare_build_artifacts.py'), |
| 281 args=args, | 282 args=args, |
| 282 cwd=self.m.path['slave_build']) | 283 cwd=self.m.path['slave_build']) |
| OLD | NEW |