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

Side by Side Diff: build/android/pylib/constants.py

Issue 204353011: If install of test apk fails because of storage, wipe device data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use constants.ADB_KEYS_FILE. Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « build/android/provision_devices.py ('k') | 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 (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 """Defines a set of constants shared by test runners and other scripts.""" 5 """Defines a set of constants shared by test runners and other scripts."""
6 # pylint: disable=W0212 6 # pylint: disable=W0212
7 7
8 import collections 8 import collections
9 import logging 9 import logging
10 import os 10 import os
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 TEST_SERVER_PORT_FILE = '/tmp/test_server_port' 111 TEST_SERVER_PORT_FILE = '/tmp/test_server_port'
112 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock' 112 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock'
113 113
114 TEST_EXECUTABLE_DIR = '/data/local/tmp' 114 TEST_EXECUTABLE_DIR = '/data/local/tmp'
115 # Directories for common java libraries for SDK build. 115 # Directories for common java libraries for SDK build.
116 # These constants are defined in build/android/ant/common.xml 116 # These constants are defined in build/android/ant/common.xml
117 SDK_BUILD_JAVALIB_DIR = 'lib.java' 117 SDK_BUILD_JAVALIB_DIR = 'lib.java'
118 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java' 118 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java'
119 SDK_BUILD_APKS_DIR = 'apks' 119 SDK_BUILD_APKS_DIR = 'apks'
120 120
121 ADB_KEYS_FILE = '/data/misc/adb/adb_keys'
122
121 PERF_OUTPUT_DIR = os.path.join(DIR_SOURCE_ROOT, 'out', 'step_results') 123 PERF_OUTPUT_DIR = os.path.join(DIR_SOURCE_ROOT, 'out', 'step_results')
122 # The directory on the device where perf test output gets saved to. 124 # The directory on the device where perf test output gets saved to.
123 DEVICE_PERF_OUTPUT_DIR = ( 125 DEVICE_PERF_OUTPUT_DIR = (
124 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files') 126 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files')
125 127
126 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots') 128 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots')
127 129
128 ANDROID_SDK_VERSION = 19 130 ANDROID_SDK_VERSION = 19
129 ANDROID_SDK_BUILD_TOOLS_VERSION = '19.0.0' 131 ANDROID_SDK_BUILD_TOOLS_VERSION = '19.0.0'
130 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 132 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 191 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
190 return 'adb' 192 return 'adb'
191 except OSError: 193 except OSError:
192 logging.debug('No adb found in $PATH, fallback to checked in binary.') 194 logging.debug('No adb found in $PATH, fallback to checked in binary.')
193 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 195 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
194 196
195 197
196 # Exit codes 198 # Exit codes
197 ERROR_EXIT_CODE = 1 199 ERROR_EXIT_CODE = 1
198 WARNING_EXIT_CODE = 88 200 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/provision_devices.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698