| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 """API for the perf try job recipe module. | 5 """API for the perf try job recipe module. |
| 6 | 6 |
| 7 This API is meant to enable the perf try job recipe on any chromium-supported | 7 This API is meant to enable the perf try job recipe on any chromium-supported |
| 8 platform for any test that can be run via buildbot, perf or otherwise. | 8 platform for any test that can be run via buildbot, perf or otherwise. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 suffix=str(revision), force=True, patch=False, | 155 suffix=str(revision), force=True, patch=False, |
| 156 update_presentation=False) | 156 update_presentation=False) |
| 157 assert update_step.json.output['did_run'] | 157 assert update_step.json.output['did_run'] |
| 158 self.m.chromium.runhooks(name='runhooks on %s' % str(revision)) | 158 self.m.chromium.runhooks(name='runhooks on %s' % str(revision)) |
| 159 | 159 |
| 160 return update_step | 160 return update_step |
| 161 | 161 |
| 162 def _compile(self, name, mastername, buildername, update_step, bot_db): | 162 def _compile(self, name, mastername, buildername, update_step, bot_db): |
| 163 """Runs compile and related steps for given builder.""" | 163 """Runs compile and related steps for given builder.""" |
| 164 compile_targets, _ = self.m.chromium_tests.get_compile_targets_and_tests( | 164 compile_targets, _ = self.m.chromium_tests.get_compile_targets_and_tests( |
| 165 mastername, | 165 self.m.chromium_tests.create_bot_desc(mastername, buildername), |
| 166 buildername, | |
| 167 bot_db, | 166 bot_db, |
| 168 override_bot_type='builder_tester', | 167 override_bot_type='builder_tester', |
| 169 override_tests=[]) | 168 override_tests=[]) |
| 170 if self.m.chromium.c.TARGET_PLATFORM == 'android': | 169 if self.m.chromium.c.TARGET_PLATFORM == 'android': |
| 171 self.m.chromium_android.clean_local_files() | 170 self.m.chromium_android.clean_local_files() |
| 172 compile_targets = None | 171 compile_targets = None |
| 173 else: | 172 else: |
| 174 # Removes any chrome temporary files or build.dead directories. | 173 # Removes any chrome temporary files or build.dead directories. |
| 175 self.m.chromium.cleanup_temp() | 174 self.m.chromium.cleanup_temp() |
| 176 | 175 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 437 |
| 439 def _prepend_src_to_path_in_command(test_cfg): | 438 def _prepend_src_to_path_in_command(test_cfg): |
| 440 command_to_run = [] | 439 command_to_run = [] |
| 441 for v in test_cfg.get('command').split(): | 440 for v in test_cfg.get('command').split(): |
| 442 if v in ['./tools/perf/run_benchmark', | 441 if v in ['./tools/perf/run_benchmark', |
| 443 'tools/perf/run_benchmark', | 442 'tools/perf/run_benchmark', |
| 444 'tools\\perf\\run_benchmark']: | 443 'tools\\perf\\run_benchmark']: |
| 445 v = 'src/tools/perf/run_benchmark' | 444 v = 'src/tools/perf/run_benchmark' |
| 446 command_to_run.append(v) | 445 command_to_run.append(v) |
| 447 test_cfg.update({'command': ' '.join(command_to_run)}) | 446 test_cfg.update({'command': ' '.join(command_to_run)}) |
| OLD | NEW |