Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: build/android/pylib/local/device/local_device_perf_test_run.py

Issue 2423443002: [build/android] Increase timeout of perf tests to 3 hours (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698