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 recipe_engine import recipe_api | 5 from recipe_engine 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 args = [ | 208 args = [ |
209 '--build-dir', self.m.chromium.output_dir, | 209 '--build-dir', self.m.chromium.output_dir, |
210 '--src-dir', self.m.path['checkout'] | 210 '--src-dir', self.m.path['checkout'] |
211 ] | 211 ] |
212 # Turn the failures during this step into warnings, it's a best effort step | 212 # Turn the failures during this step into warnings, it's a best effort step |
213 # that shouldn't break the build for now. | 213 # that shouldn't break the build for now. |
214 try: | 214 try: |
215 self.m.python('remove_build_metadata', | 215 self.m.python('remove_build_metadata', |
216 self.resource('remove_build_metadata.py'), | 216 self.resource('remove_build_metadata.py'), |
217 args=args, | 217 args=args, |
218 cwd=self.m.infra_paths['slave_build']) | 218 cwd=self.m.path['slave_build']) |
219 except self.m.step.StepFailure: | 219 except self.m.step.StepFailure: |
220 step_result = self.m.step.active_result | 220 step_result = self.m.step.active_result |
221 step_result.presentation.status = self.m.step.WARNING | 221 step_result.presentation.status = self.m.step.WARNING |
222 | 222 |
223 def compare_build_artifacts(self, first_dir, second_dir): | 223 def compare_build_artifacts(self, first_dir, second_dir): |
224 """Compare the artifacts from 2 builds.""" | 224 """Compare the artifacts from 2 builds.""" |
225 args = [ | 225 args = [ |
226 '--first-build-dir', first_dir, | 226 '--first-build-dir', first_dir, |
227 '--second-build-dir', second_dir, | 227 '--second-build-dir', second_dir, |
228 '--target-platform', self.m.chromium.c.TARGET_PLATFORM | 228 '--target-platform', self.m.chromium.c.TARGET_PLATFORM |
229 ] | 229 ] |
230 self.m.python('compare_build_artifacts', | 230 self.m.python('compare_build_artifacts', |
231 self.resource('compare_build_artifacts.py'), | 231 self.resource('compare_build_artifacts.py'), |
232 args=args, | 232 args=args, |
233 cwd=self.m.infra_paths['slave_build']) | 233 cwd=self.m.path['slave_build']) |
OLD | NEW |