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

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

Issue 18323020: Updates the test runner script exit codes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 """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 import subprocess 8 import subprocess
9 import sys
10 9
11 10
12 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), 11 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),
13 os.pardir, os.pardir, os.pardir)) 12 os.pardir, os.pardir, os.pardir))
14 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(DIR_SOURCE_ROOT, os.pardir, 13 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(DIR_SOURCE_ROOT, os.pardir,
15 os.pardir)) 14 os.pardir))
16 15
17 CHROME_PACKAGE = 'com.google.android.apps.chrome' 16 CHROME_PACKAGE = 'com.google.android.apps.chrome'
18 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' 17 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main'
19 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote' 18 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote'
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 try: 90 try:
92 with file(os.devnull, 'w') as devnull: 91 with file(os.devnull, 'w') as devnull:
93 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 92 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
94 return 'adb' 93 return 'adb'
95 except OSError: 94 except OSError:
96 print 'No adb found in $PATH, fallback to checked in binary.' 95 print 'No adb found in $PATH, fallback to checked in binary.'
97 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 96 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
98 97
99 98
100 ADB_PATH = _GetADBPath() 99 ADB_PATH = _GetADBPath()
100
101 # Exit codes
102 ERROR_EXIT_CODE = 1
103 WARNING_EXIT_CODE = 88
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698