| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 338 |
| 339 def _ExtendPersistedResult(self, persisted_result): | 339 def _ExtendPersistedResult(self, persisted_result): |
| 340 persisted_result['host_test'] = True | 340 persisted_result['host_test'] = True |
| 341 | 341 |
| 342 | 342 |
| 343 class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun): | 343 class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun): |
| 344 | 344 |
| 345 _DEFAULT_TIMEOUT = 5 * 60 * 60 # 5 hours. | 345 _DEFAULT_TIMEOUT = 5 * 60 * 60 # 5 hours. |
| 346 _CONFIG_VERSION = 1 | 346 _CONFIG_VERSION = 1 |
| 347 | 347 |
| 348 def __init__(self, env, test_instance): | 348 def __init__(self, env, test_instance, test_output_saver): |
| 349 super(LocalDevicePerfTestRun, self).__init__(env, test_instance) | 349 super(LocalDevicePerfTestRun, self).__init__( |
| 350 env, test_instance, test_output_saver) |
| 350 self._devices = None | 351 self._devices = None |
| 351 self._env = env | 352 self._env = env |
| 352 self._no_device_tests = {} | 353 self._no_device_tests = {} |
| 353 self._test_buckets = [] | 354 self._test_buckets = [] |
| 354 self._test_instance = test_instance | 355 self._test_instance = test_instance |
| 355 self._timeout = None if test_instance.no_timeout else self._DEFAULT_TIMEOUT | 356 self._timeout = None if test_instance.no_timeout else self._DEFAULT_TIMEOUT |
| 356 | 357 |
| 357 #override | 358 #override |
| 358 def SetUp(self): | 359 def SetUp(self): |
| 359 if os.path.exists(constants.PERF_OUTPUT_DIR): | 360 if os.path.exists(constants.PERF_OUTPUT_DIR): |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 # override | 531 # override |
| 531 def _RunTest(self, _device, _test): | 532 def _RunTest(self, _device, _test): |
| 532 raise NotImplementedError | 533 raise NotImplementedError |
| 533 | 534 |
| 534 | 535 |
| 535 class TestDictVersionError(Exception): | 536 class TestDictVersionError(Exception): |
| 536 pass | 537 pass |
| 537 | 538 |
| 538 class PerfTestRunGetStepsError(Exception): | 539 class PerfTestRunGetStepsError(Exception): |
| 539 pass | 540 pass |
| OLD | NEW |