| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 io | 6 import io |
| 7 import json | 7 import json |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import pickle | 10 import pickle |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 def _LogTest(self, test, cmd, timeout): | 316 def _LogTest(self, test, cmd, timeout): |
| 317 logging.debug("Running %s with command '%s' on host shard with timeout %d", | 317 logging.debug("Running %s with command '%s' on host shard with timeout %d", |
| 318 test, cmd, timeout) | 318 test, cmd, timeout) |
| 319 | 319 |
| 320 def _ExtendPersistedResult(self, persisted_result): | 320 def _ExtendPersistedResult(self, persisted_result): |
| 321 persisted_result['host_test'] = True | 321 persisted_result['host_test'] = True |
| 322 | 322 |
| 323 | 323 |
| 324 class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun): | 324 class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun): |
| 325 | 325 |
| 326 _DEFAULT_TIMEOUT = 3 * 60 * 60 # 3 hours. | 326 _DEFAULT_TIMEOUT = 5 * 60 * 60 # 5 hours. |
| 327 _CONFIG_VERSION = 1 | 327 _CONFIG_VERSION = 1 |
| 328 | 328 |
| 329 def __init__(self, env, test_instance): | 329 def __init__(self, env, test_instance): |
| 330 super(LocalDevicePerfTestRun, self).__init__(env, test_instance) | 330 super(LocalDevicePerfTestRun, self).__init__(env, test_instance) |
| 331 self._devices = None | 331 self._devices = None |
| 332 self._env = env | 332 self._env = env |
| 333 self._no_device_tests = {} | 333 self._no_device_tests = {} |
| 334 self._test_buckets = [] | 334 self._test_buckets = [] |
| 335 self._test_instance = test_instance | 335 self._test_instance = test_instance |
| 336 self._timeout = None if test_instance.no_timeout else self._DEFAULT_TIMEOUT | 336 self._timeout = None if test_instance.no_timeout else self._DEFAULT_TIMEOUT |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 # override | 511 # override |
| 512 def _RunTest(self, _device, _test): | 512 def _RunTest(self, _device, _test): |
| 513 raise NotImplementedError | 513 raise NotImplementedError |
| 514 | 514 |
| 515 | 515 |
| 516 class TestDictVersionError(Exception): | 516 class TestDictVersionError(Exception): |
| 517 pass | 517 pass |
| 518 | 518 |
| 519 class PerfTestRunGetStepsError(Exception): | 519 class PerfTestRunGetStepsError(Exception): |
| 520 pass | 520 pass |
| OLD | NEW |