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

Side by Side Diff: build/android/test_runner.py

Issue 2092723002: Redirect users without sync passphrase to passwords.google.com (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sync set-up similar across tests Created 4 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Runs all types of tests from one unified interface.""" 7 """Runs all types of tests from one unified interface."""
8 8
9 import argparse 9 import argparse
10 import collections 10 import collections
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 def AddCommonOptions(parser): 52 def AddCommonOptions(parser):
53 """Adds all common options to |parser|.""" 53 """Adds all common options to |parser|."""
54 54
55 group = parser.add_argument_group('Common Options') 55 group = parser.add_argument_group('Common Options')
56 56
57 default_build_type = os.environ.get('BUILDTYPE', 'Debug') 57 default_build_type = os.environ.get('BUILDTYPE', 'Debug')
58 58
59 debug_or_release_group = group.add_mutually_exclusive_group() 59 debug_or_release_group = group.add_mutually_exclusive_group()
60 debug_or_release_group.add_argument( 60 debug_or_release_group.add_argument(
61 '--debug', action='store_const', const='Debug', dest='build_type', 61 '--debug', action='store_const', const='Default', dest='build_type',
Bernhard Bauer 2016/07/20 14:56:19 Why this change?
dozsa 2016/07/21 08:51:33 I have to make that change in order to be able to
Bernhard Bauer 2016/07/21 09:17:39 Is that for running tests locally? You could keep
62 default=default_build_type, 62 default=default_build_type,
63 help=('If set, run test suites under out/Debug. ' 63 help=('If set, run test suites under out/Debug. '
64 'Default is env var BUILDTYPE or Debug.')) 64 'Default is env var BUILDTYPE or Debug.'))
65 debug_or_release_group.add_argument( 65 debug_or_release_group.add_argument(
66 '--release', action='store_const', const='Release', dest='build_type', 66 '--release', action='store_const', const='Release', dest='build_type',
67 help=('If set, run test suites under out/Release. ' 67 help=('If set, run test suites under out/Release. '
68 'Default is env var BUILDTYPE or Debug.')) 68 'Default is env var BUILDTYPE or Debug.'))
69 69
70 group.add_argument('--build-directory', dest='build_directory', 70 group.add_argument('--build-directory', dest='build_directory',
71 help=('Path to the directory in which build files are' 71 help=('Path to the directory in which build files are'
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 if e.is_infra_error: 995 if e.is_infra_error:
996 return constants.INFRA_EXIT_CODE 996 return constants.INFRA_EXIT_CODE
997 return constants.ERROR_EXIT_CODE 997 return constants.ERROR_EXIT_CODE
998 except: # pylint: disable=W0702 998 except: # pylint: disable=W0702
999 logging.exception('Unrecognized error occurred.') 999 logging.exception('Unrecognized error occurred.')
1000 return constants.ERROR_EXIT_CODE 1000 return constants.ERROR_EXIT_CODE
1001 1001
1002 1002
1003 if __name__ == '__main__': 1003 if __name__ == '__main__':
1004 sys.exit(main()) 1004 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698