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

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 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
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 try: 281 try:
282 with file(os.devnull, 'w') as devnull: 282 with file(os.devnull, 'w') as devnull:
283 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 283 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
284 return 'adb' 284 return 'adb'
285 except OSError: 285 except OSError:
286 logging.debug('No adb found in $PATH, fallback to checked in binary.') 286 logging.debug('No adb found in $PATH, fallback to checked in binary.')
287 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 287 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
288 288
289 # Exit codes 289 # Exit codes
290 ERROR_EXIT_CODE = 1 290 ERROR_EXIT_CODE = 1
291 INFRA_EXIT_CODE = 87
291 WARNING_EXIT_CODE = 88 292 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/pylib/base/test_dispatcher.py ('k') | build/android/pylib/device/device_errors.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698