| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 collections | 5 import collections |
| 6 import logging | 6 import logging |
| 7 import optparse | 7 import optparse |
| 8 import os | 8 import os |
| 9 import random | 9 import random |
| 10 import sys | 10 import sys |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 should_run = decorators.IsEnabled(test, possible_browser) | 351 should_run = decorators.IsEnabled(test, possible_browser) |
| 352 | 352 |
| 353 should_run = should_run or finder_options.run_disabled_tests | 353 should_run = should_run or finder_options.run_disabled_tests |
| 354 | 354 |
| 355 if not should_run: | 355 if not should_run: |
| 356 logging.warning('You are trying to run a disabled test.') | 356 logging.warning('You are trying to run a disabled test.') |
| 357 logging.warning('Pass --also-run-disabled-tests to squelch this message.') | 357 logging.warning('Pass --also-run-disabled-tests to squelch this message.') |
| 358 return | 358 return |
| 359 | 359 |
| 360 if possible_browser.IsRemote(): |
| 361 possible_browser.RunRemote() |
| 362 sys.exit(0) |
| 363 |
| 360 # Reorder page set based on options. | 364 # Reorder page set based on options. |
| 361 pages = _ShuffleAndFilterPageSet(page_set, finder_options) | 365 pages = _ShuffleAndFilterPageSet(page_set, finder_options) |
| 362 | 366 |
| 363 if (not finder_options.use_live_sites and | 367 if (not finder_options.use_live_sites and |
| 364 browser_options.wpr_mode != wpr_modes.WPR_RECORD): | 368 browser_options.wpr_mode != wpr_modes.WPR_RECORD): |
| 365 _UpdatePageSetArchivesIfChanged(page_set) | 369 _UpdatePageSetArchivesIfChanged(page_set) |
| 366 pages = _CheckArchives(page_set, pages, results) | 370 pages = _CheckArchives(page_set, pages, results) |
| 367 | 371 |
| 368 # Verify credentials path. | 372 # Verify credentials path. |
| 369 credentials_path = None | 373 credentials_path = None |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 logging.warning('Device is thermally throttled before running ' | 571 logging.warning('Device is thermally throttled before running ' |
| 568 'performance tests, results will vary.') | 572 'performance tests, results will vary.') |
| 569 | 573 |
| 570 | 574 |
| 571 def _CheckThermalThrottling(platform): | 575 def _CheckThermalThrottling(platform): |
| 572 if not platform.CanMonitorThermalThrottling(): | 576 if not platform.CanMonitorThermalThrottling(): |
| 573 return | 577 return |
| 574 if platform.HasBeenThermallyThrottled(): | 578 if platform.HasBeenThermallyThrottled(): |
| 575 logging.warning('Device has been thermally throttled during ' | 579 logging.warning('Device has been thermally throttled during ' |
| 576 'performance tests, results will vary.') | 580 'performance tests, results will vary.') |
| OLD | NEW |