| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 # Set some buildbot info used in goma_utils. | 180 # Set some buildbot info used in goma_utils. |
| 181 for key in ['buildername', 'mastername', 'slavename', 'clobber']: | 181 for key in ['buildername', 'mastername', 'slavename', 'clobber']: |
| 182 if key in self.m.properties: | 182 if key in self.m.properties: |
| 183 args.extend([ | 183 args.extend([ |
| 184 '--buildbot-%s' % key, self.m.properties[key] | 184 '--buildbot-%s' % key, self.m.properties[key] |
| 185 ]) | 185 ]) |
| 186 | 186 |
| 187 # 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. |
| 188 # Otherwise use the default one inside build output directory. | 188 # Otherwise use the default one inside build output directory. |
| 189 try: | 189 try: |
| 190 args.extend(['--goma-deps-cache-dir', self.m.path['goma_deps_cache']]) | 190 safe_buildername = re.sub(r'[^a-zA-Z0-9]', '_', |
| 191 except KeyError: | 191 self.m.properties['buildername']) + '.gomadeps' |
| 192 args.extend(['--goma-deps-cache-file', safe_buildername]) |
| 193 except KeyError: # pragma: nocover |
| 192 pass | 194 pass |
| 193 | 195 |
| 194 if self.c.compile_py.build_args: | 196 if self.c.compile_py.build_args: |
| 195 args += ['--build-args', self.c.compile_py.build_args] | 197 args += ['--build-args', self.c.compile_py.build_args] |
| 196 if self.m.properties.get('build_data_dir'): | 198 if self.m.properties.get('build_data_dir'): |
| 197 args += ['--build-data-dir', self.m.properties.get('build_data_dir')] | 199 args += ['--build-data-dir', self.m.properties.get('build_data_dir')] |
| 198 if self.c.compile_py.compiler: | 200 if self.c.compile_py.compiler: |
| 199 args += ['--compiler', self.c.compile_py.compiler] | 201 args += ['--compiler', self.c.compile_py.compiler] |
| 200 if 'goma' in self.c.compile_py.compiler: | 202 if 'goma' in self.c.compile_py.compiler: |
| 201 args += [ | 203 args += [ |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 })) | 827 })) |
| 826 | 828 |
| 827 def get_annotate_by_test_name(self, test_name): | 829 def get_annotate_by_test_name(self, test_name): |
| 828 return 'graphing' | 830 return 'graphing' |
| 829 | 831 |
| 830 def download_lto_plugin(self): | 832 def download_lto_plugin(self): |
| 831 return self.m.python( | 833 return self.m.python( |
| 832 name='download LTO plugin', | 834 name='download LTO plugin', |
| 833 script=self.m.path['checkout'].join( | 835 script=self.m.path['checkout'].join( |
| 834 'build', 'download_gold_plugin.py')) | 836 'build', 'download_gold_plugin.py')) |
| OLD | NEW |