| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 '--show-path', | 170 '--show-path', |
| 171 'python', | 171 'python', |
| 172 self.package_repo_resource('scripts', 'slave', 'compile.py'), | 172 self.package_repo_resource('scripts', 'slave', 'compile.py'), |
| 173 '--gsutil-py-path', self.m.depot_tools.gsutil_py_path, | 173 '--gsutil-py-path', self.m.depot_tools.gsutil_py_path, |
| 174 '--ninja-path', self.m.depot_tools.ninja_path, | 174 '--ninja-path', self.m.depot_tools.ninja_path, |
| 175 '--target', target or self.c.build_config_fs, | 175 '--target', target or self.c.build_config_fs, |
| 176 '--src-dir', self.m.path['checkout'], | 176 '--src-dir', self.m.path['checkout'], |
| 177 '--goma-cache-dir', self.m.path['goma_cache'], | 177 '--goma-cache-dir', self.m.path['goma_cache'], |
| 178 ] | 178 ] |
| 179 | 179 |
| 180 # Set some buildbot info used in goma_utils. |
| 181 for key in ['buildername', 'mastername', 'slavename', 'clobber']: |
| 182 if key in self.m.properties: |
| 183 args.extend([ |
| 184 '--buildbot-%s' % key, self.m.properties[key] |
| 185 ]) |
| 186 |
| 180 # Use explicit goma deps cache dir if it's set in the path config. | 187 # Use explicit goma deps cache dir if it's set in the path config. |
| 181 # Otherwise use the default one inside build output directory. | 188 # Otherwise use the default one inside build output directory. |
| 182 try: | 189 try: |
| 183 args.extend(['--goma-deps-cache-dir', self.m.path['goma_deps_cache']]) | 190 args.extend(['--goma-deps-cache-dir', self.m.path['goma_deps_cache']]) |
| 184 except KeyError: | 191 except KeyError: |
| 185 pass | 192 pass |
| 186 | 193 |
| 187 if self.c.compile_py.build_args: | 194 if self.c.compile_py.build_args: |
| 188 args += ['--build-args', self.c.compile_py.build_args] | 195 args += ['--build-args', self.c.compile_py.build_args] |
| 189 if self.m.properties.get('build_data_dir'): | 196 if self.m.properties.get('build_data_dir'): |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 })) | 802 })) |
| 796 | 803 |
| 797 def get_annotate_by_test_name(self, test_name): | 804 def get_annotate_by_test_name(self, test_name): |
| 798 return 'graphing' | 805 return 'graphing' |
| 799 | 806 |
| 800 def download_lto_plugin(self): | 807 def download_lto_plugin(self): |
| 801 return self.m.python( | 808 return self.m.python( |
| 802 name='download LTO plugin', | 809 name='download LTO plugin', |
| 803 script=self.m.path['checkout'].join( | 810 script=self.m.path['checkout'].join( |
| 804 'build', 'download_gold_plugin.py')) | 811 'build', 'download_gold_plugin.py')) |
| OLD | NEW |