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

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

Issue 14842015: Workaround ADB port allocation issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « 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 (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 6
7 import os 7 import os
8 8
9 9
10 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), 10 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 BROWSERTEST_COMMAND_LINE_FILE = 'content-browser-tests-command-line' 44 BROWSERTEST_COMMAND_LINE_FILE = 'content-browser-tests-command-line'
45 45
46 # Ports arrangement for various test servers used in Chrome for Android. 46 # Ports arrangement for various test servers used in Chrome for Android.
47 # Lighttpd server will attempt to use 9000 as default port, if unavailable it 47 # Lighttpd server will attempt to use 9000 as default port, if unavailable it
48 # will find a free port from 8001 - 8999. 48 # will find a free port from 8001 - 8999.
49 LIGHTTPD_DEFAULT_PORT = 9000 49 LIGHTTPD_DEFAULT_PORT = 9000
50 LIGHTTPD_RANDOM_PORT_FIRST = 8001 50 LIGHTTPD_RANDOM_PORT_FIRST = 8001
51 LIGHTTPD_RANDOM_PORT_LAST = 8999 51 LIGHTTPD_RANDOM_PORT_LAST = 8999
52 TEST_SYNC_SERVER_PORT = 9031 52 TEST_SYNC_SERVER_PORT = 9031
53 53
54 # The net test server is started from 10000. Reserve 20000 ports for the all 54 # The net test server is started from port 10201.
55 # test-server based tests should be enough for allocating different port for 55 # TODO(pliard): http://crbug.com/239014. Remove this dirty workaround once
56 # individual test-server based test. 56 # http://crbug.com/239014 is fixed properly.
57 TEST_SERVER_PORT_FIRST = 10000 57 TEST_SERVER_PORT_FIRST = 10201
58 TEST_SERVER_PORT_LAST = 30000 58 TEST_SERVER_PORT_LAST = 30000
59 # A file to record next valid port of test server. 59 # A file to record next valid port of test server.
60 TEST_SERVER_PORT_FILE = '/tmp/test_server_port' 60 TEST_SERVER_PORT_FILE = '/tmp/test_server_port'
61 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock' 61 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock'
62 62
63 TEST_EXECUTABLE_DIR = '/data/local/tmp' 63 TEST_EXECUTABLE_DIR = '/data/local/tmp'
64 # Directories for common java libraries for SDK build. 64 # Directories for common java libraries for SDK build.
65 # These constants are defined in build/android/ant/common.xml 65 # These constants are defined in build/android/ant/common.xml
66 SDK_BUILD_JAVALIB_DIR = 'lib.java' 66 SDK_BUILD_JAVALIB_DIR = 'lib.java'
67 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java' 67 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java'
68 SDK_BUILD_APKS_DIR = 'apks' 68 SDK_BUILD_APKS_DIR = 'apks'
69 69
70 # The directory on the device where perf test output gets saved to. 70 # The directory on the device where perf test output gets saved to.
71 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files' 71 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files'
72 72
73 SCREENSHOTS_DIR = os.path.join(CHROME_DIR, 'out_screenshots') 73 SCREENSHOTS_DIR = os.path.join(CHROME_DIR, 'out_screenshots')
74 74
75 ANDROID_SDK_VERSION = 17 75 ANDROID_SDK_VERSION = 17
76 ANDROID_SDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/sdk') 76 ANDROID_SDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/sdk')
77 ANDROID_NDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/ndk') 77 ANDROID_NDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/ndk')
78 78
79 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' 79 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com'
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