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

Side by Side Diff: build/android/pylib/gtest/test_runner.py

Issue 18770008: [Android] Redesigns the sharder to allow replicated vs distributed tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds support for cleanup_test_files Created 7 years, 5 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 logging 5 import logging
6 import os 6 import os
7 import re 7 import re
8 8
9 from pylib import android_commands 9 from pylib import android_commands
10 from pylib import constants 10 from pylib import constants
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 self._running_on_emulator = self.device.startswith('emulator') 52 self._running_on_emulator = self.device.startswith('emulator')
53 self._test_arguments = test_arguments 53 self._test_arguments = test_arguments
54 self.in_webkit_checkout = in_webkit_checkout 54 self.in_webkit_checkout = in_webkit_checkout
55 if timeout == 0: 55 if timeout == 0:
56 timeout = 60 56 timeout = 60
57 # On a VM (e.g. chromium buildbots), this timeout is way too small. 57 # On a VM (e.g. chromium buildbots), this timeout is way too small.
58 if os.environ.get('BUILDBOT_SLAVENAME'): 58 if os.environ.get('BUILDBOT_SLAVENAME'):
59 timeout = timeout * 2 59 timeout = timeout * 2
60 self.timeout = timeout * self.tool.GetTimeoutScale() 60 self.timeout = timeout * self.tool.GetTimeoutScale()
61 61
62 logging.warning('Test suite: ' + test_suite) 62 logging.warning('Test suite: ' + str(test_suite))
63 if os.path.splitext(test_suite)[1] == '.apk': 63 if os.path.splitext(test_suite)[1] == '.apk':
64 self.test_package = test_package_apk.TestPackageApk( 64 self.test_package = test_package_apk.TestPackageApk(
65 self.adb, 65 self.adb,
66 device, 66 device,
67 test_suite, 67 test_suite,
68 self.tool, 68 self.tool,
69 test_apk_package_name, 69 test_apk_package_name,
70 test_activity_name, 70 test_activity_name,
71 command_line_file) 71 command_line_file)
72 else: 72 else:
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 super(TestRunner, self).SetUp() 253 super(TestRunner, self).SetUp()
254 if _TestSuiteRequiresMockTestServer(self.test_package.test_suite_basename): 254 if _TestSuiteRequiresMockTestServer(self.test_package.test_suite_basename):
255 self.LaunchChromeTestServerSpawner() 255 self.LaunchChromeTestServerSpawner()
256 self.tool.SetupEnvironment() 256 self.tool.SetupEnvironment()
257 257
258 #override 258 #override
259 def TearDown(self): 259 def TearDown(self):
260 """Cleans up the test enviroment for the test suite.""" 260 """Cleans up the test enviroment for the test suite."""
261 self.tool.CleanUpEnvironment() 261 self.tool.CleanUpEnvironment()
262 super(TestRunner, self).TearDown() 262 super(TestRunner, self).TearDown()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698