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

Side by Side Diff: build/android/pylib/instrumentation/test_jar.py

Issue 1571803002: [Android] Prepare build/android/ for catapult+devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@create-device-library-links
Patch Set: rebase Created 4 years, 11 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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 """Helper class for instrumenation test jar.""" 5 """Helper class for instrumenation test jar."""
6 # pylint: disable=W0702 6 # pylint: disable=W0702
7 7
8 import logging 8 import logging
9 import os 9 import os
10 import pickle 10 import pickle
11 import re 11 import re
12 import sys
13 12
14 from devil.android import device_utils 13 from devil.android import device_utils
15 from devil.android import md5sum 14 from devil.android import md5sum
16 from pylib import constants 15 from pylib import constants
16 from pylib.constants import host_paths
17 from pylib.utils import proguard 17 from pylib.utils import proguard
18 18
19 sys.path.insert(0, 19 with host_paths.SysPath(host_paths.BUILD_COMMON_PATH):
20 os.path.join(constants.DIR_SOURCE_ROOT, 20 import unittest_util # pylint: disable=import-error
21 'build', 'util', 'lib', 'common'))
22
23 import unittest_util # pylint: disable=F0401
24 21
25 # If you change the cached output of proguard, increment this number 22 # If you change the cached output of proguard, increment this number
26 PICKLE_FORMAT_VERSION = 4 23 PICKLE_FORMAT_VERSION = 4
27 24
28 25
29 class TestJar(object): 26 class TestJar(object):
30 _ANNOTATIONS = frozenset( 27 _ANNOTATIONS = frozenset(
31 ['Smoke', 'SmallTest', 'MediumTest', 'LargeTest', 'EnormousTest', 28 ['Smoke', 'SmallTest', 'MediumTest', 'LargeTest', 'EnormousTest',
32 'FlakyTest', 'DisabledTest', 'Manual', 'PerfTest', 'HostDrivenTest', 29 'FlakyTest', 'DisabledTest', 'Manual', 'PerfTest', 'HostDrivenTest',
33 'IntegrationTest']) 30 'IntegrationTest'])
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 devices = device_utils.DeviceUtils.parallel(devices) 230 devices = device_utils.DeviceUtils.parallel(devices)
234 min_sdk_version = min(devices.build_version_sdk.pGet(None)) 231 min_sdk_version = min(devices.build_version_sdk.pGet(None))
235 tests = [t for t in tests 232 tests = [t for t in tests
236 if self._IsTestValidForSdkRange(t, min_sdk_version)] 233 if self._IsTestValidForSdkRange(t, min_sdk_version)]
237 234
238 return tests 235 return tests
239 236
240 @staticmethod 237 @staticmethod
241 def IsHostDrivenTest(test): 238 def IsHostDrivenTest(test):
242 return 'pythonDrivenTests' in test 239 return 'pythonDrivenTests' in test
OLDNEW
« no previous file with comments | « build/android/pylib/instrumentation/setup.py ('k') | build/android/pylib/instrumentation/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698