| 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 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 from recipe_engine import recipe_api | 6 from recipe_engine import recipe_api |
| 7 | 7 |
| 8 import common | 8 import common |
| 9 | 9 |
| 10 SIMPLE_TESTS_TO_RUN = freeze([ | 10 SIMPLE_TESTS_TO_RUN = freeze([ |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 # capacity to do so, and on all platforms as soon as ANGLE does. | 208 # capacity to do so, and on all platforms as soon as ANGLE does. |
| 209 isolates += common.WIN_AND_LINUX_ONLY_FYI_ONLY_GPU_ISOLATES | 209 isolates += common.WIN_AND_LINUX_ONLY_FYI_ONLY_GPU_ISOLATES |
| 210 if self.m.platform.is_win: | 210 if self.m.platform.is_win: |
| 211 isolates += common.WIN_ONLY_FYI_ONLY_GPU_ISOLATES | 211 isolates += common.WIN_ONLY_FYI_ONLY_GPU_ISOLATES |
| 212 targets = [u'%s_run' % test for test in isolates] | 212 targets = [u'%s_run' % test for test in isolates] |
| 213 self.m.isolate.clean_isolated_files( | 213 self.m.isolate.clean_isolated_files( |
| 214 self.m.chromium.c.build_dir.join(self.m.chromium.c.build_config_fs)) | 214 self.m.chromium.c.build_dir.join(self.m.chromium.c.build_config_fs)) |
| 215 if is_tryserver: | 215 if is_tryserver: |
| 216 self.m.filter.does_patch_require_compile( | 216 self.m.filter.does_patch_require_compile( |
| 217 self.m.tryserver.get_files_affected_by_patch(), | 217 self.m.tryserver.get_files_affected_by_patch(), |
| 218 self.m.properties['mastername'], |
| 219 self.m.properties['buildername'], |
| 218 test_targets=targets, | 220 test_targets=targets, |
| 219 additional_names=['chromium'], | 221 additional_names=['chromium'], |
| 220 config_file_name='trybot_analyze_config.json') | 222 config_file_name='trybot_analyze_config.json') |
| 221 if not self.m.filter.compile_targets: | 223 if not self.m.filter.compile_targets: |
| 222 # Early out if no work to do. | 224 # Early out if no work to do. |
| 223 return | 225 return |
| 224 compile_targets = list(self.m.filter.compile_targets) | 226 compile_targets = list(self.m.filter.compile_targets) |
| 225 # Re-sort the targets to keep test expectations stable. | 227 # Re-sort the targets to keep test expectations stable. |
| 226 compile_targets.sort() | 228 compile_targets.sort() |
| 227 try: | 229 try: |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 if extra_browser_args: | 598 if extra_browser_args: |
| 597 extra_browser_args_string += ' ' + ' '.join(extra_browser_args) | 599 extra_browser_args_string += ' ' + ' '.join(extra_browser_args) |
| 598 test_args.append(extra_browser_args_string) | 600 test_args.append(extra_browser_args_string) |
| 599 | 601 |
| 600 return self.m.chromium_tests.steps.TelemetryGPUTest( | 602 return self.m.chromium_tests.steps.TelemetryGPUTest( |
| 601 name, chrome_revision, webkit_revision, args=test_args, | 603 name, chrome_revision, webkit_revision, args=test_args, |
| 602 target_name=target_name, enable_swarming=enable_swarming, | 604 target_name=target_name, enable_swarming=enable_swarming, |
| 603 swarming_dimensions=swarming_dimensions, | 605 swarming_dimensions=swarming_dimensions, |
| 604 master_class_name=self._master_class_name_for_testing, | 606 master_class_name=self._master_class_name_for_testing, |
| 605 swarming_extra_suffix=self._get_gpu_suffix(swarming_dimensions)) | 607 swarming_extra_suffix=self._get_gpu_suffix(swarming_dimensions)) |
| OLD | NEW |