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