| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import re | 5 import re |
| 6 | 6 |
| 7 from recipe_engine import recipe_api | 7 from recipe_engine import recipe_api |
| 8 from recipe_engine import util as recipe_util | 8 from recipe_engine import util as recipe_util |
| 9 | 9 |
| 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): | 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 """Returns: a wrapper command for 'cros chrome-sdk' | 442 """Returns: a wrapper command for 'cros chrome-sdk' |
| 443 | 443 |
| 444 Args: | 444 Args: |
| 445 external: (bool) If True, force the wrapper to prefer external board | 445 external: (bool) If True, force the wrapper to prefer external board |
| 446 configurations over internal ones, even if the latter is available. | 446 configurations over internal ones, even if the latter is available. |
| 447 clean: (bool) If True, instruct the wrapper to clean any previous | 447 clean: (bool) If True, instruct the wrapper to clean any previous |
| 448 state data. | 448 state data. |
| 449 """ | 449 """ |
| 450 assert self.c.TARGET_CROS_BOARD | 450 assert self.c.TARGET_CROS_BOARD |
| 451 wrapper = [ | 451 wrapper = [ |
| 452 'cros', 'chrome-sdk', | 452 self.m.depot_tools.cros_path, 'chrome-sdk', |
| 453 '--board=%s' % (self.c.TARGET_CROS_BOARD,), | 453 '--board=%s' % (self.c.TARGET_CROS_BOARD,), |
| 454 '--nocolor',] | 454 '--nocolor',] |
| 455 wrapper += self.c.cros_sdk.args | 455 wrapper += self.c.cros_sdk.args |
| 456 if self.c.cros_sdk.external: | 456 if self.c.cros_sdk.external: |
| 457 wrapper += ['--use-external-config'] | 457 wrapper += ['--use-external-config'] |
| 458 if clean: | 458 if clean: |
| 459 wrapper += ['--clear-sdk-cache'] | 459 wrapper += ['--clear-sdk-cache'] |
| 460 if self.c.compile_py.goma_dir: | 460 if self.c.compile_py.goma_dir: |
| 461 wrapper += ['--gomadir', self.c.compile_py.goma_dir] | 461 wrapper += ['--gomadir', self.c.compile_py.goma_dir] |
| 462 if self.c.gyp_env.GYP_DEFINES.get('fastbuild', 0) == 1: | 462 if self.c.gyp_env.GYP_DEFINES.get('fastbuild', 0) == 1: |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 })) | 712 })) |
| 713 | 713 |
| 714 def get_annotate_by_test_name(self, test_name): | 714 def get_annotate_by_test_name(self, test_name): |
| 715 return 'graphing' | 715 return 'graphing' |
| 716 | 716 |
| 717 def download_lto_plugin(self): | 717 def download_lto_plugin(self): |
| 718 return self.m.python( | 718 return self.m.python( |
| 719 name='download LTO plugin', | 719 name='download LTO plugin', |
| 720 script=self.m.path['checkout'].join( | 720 script=self.m.path['checkout'].join( |
| 721 'build', 'download_gold_plugin.py')) | 721 'build', 'download_gold_plugin.py')) |
| OLD | NEW |