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

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

Issue 144093008: Add --out-dir command line option to test_runner.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an --out-dir command line flag. Created 6 years, 11 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 collections 9 import collections
10 import logging 10 import logging
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 help=('Address of the server that is hosting the ' 77 help=('Address of the server that is hosting the '
78 'Chrome for Android flakiness dashboard.')) 78 'Chrome for Android flakiness dashboard.'))
79 group.add_option('--skip-deps-push', dest='push_deps', 79 group.add_option('--skip-deps-push', dest='push_deps',
80 action='store_false', default=True, 80 action='store_false', default=True,
81 help=('Do not push dependencies to the device. ' 81 help=('Do not push dependencies to the device. '
82 'Use this at own risk for speeding up test ' 82 'Use this at own risk for speeding up test '
83 'execution on local machine.')) 83 'execution on local machine.'))
84 group.add_option('-d', '--device', dest='test_device', 84 group.add_option('-d', '--device', dest='test_device',
85 help=('Target device for the test suite ' 85 help=('Target device for the test suite '
86 'to run on.')) 86 'to run on.'))
87 group.add_option('--out-dir', dest='out_directory',
frankf 2014/01/23 00:54:36 let's move this up to after --release option above
88 help=('Directory in which the output binaries are'
89 ' located.'))
87 option_parser.add_option_group(group) 90 option_parser.add_option_group(group)
88 91
89 92
90 def ProcessCommonOptions(options): 93 def ProcessCommonOptions(options):
91 """Processes and handles all common options.""" 94 """Processes and handles all common options."""
92 run_tests_helper.SetLogLevel(options.verbose_count) 95 run_tests_helper.SetLogLevel(options.verbose_count)
93 constants.SetBuildType(options.build_type) 96 constants.SetBuildType(options.build_type)
97 if (options.out_directory):
98 constants.SetOutDirectory(options.out_directory)
94 99
95 100
96 def AddGTestOptions(option_parser): 101 def AddGTestOptions(option_parser):
97 """Adds gtest options to |option_parser|.""" 102 """Adds gtest options to |option_parser|."""
98 103
99 option_parser.usage = '%prog gtest [options]' 104 option_parser.usage = '%prog gtest [options]'
100 option_parser.commands_dict = {} 105 option_parser.commands_dict = {}
101 option_parser.example = '%prog gtest -s base_unittests' 106 option_parser.example = '%prog gtest -s base_unittests'
102 107
103 # TODO(gkanwar): Make this option required 108 # TODO(gkanwar): Make this option required
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 803
799 def main(argv): 804 def main(argv):
800 signal.signal(signal.SIGUSR1, DumpThreadStacks) 805 signal.signal(signal.SIGUSR1, DumpThreadStacks)
801 option_parser = command_option_parser.CommandOptionParser( 806 option_parser = command_option_parser.CommandOptionParser(
802 commands_dict=VALID_COMMANDS) 807 commands_dict=VALID_COMMANDS)
803 return command_option_parser.ParseAndExecute(option_parser) 808 return command_option_parser.ParseAndExecute(option_parser)
804 809
805 810
806 if __name__ == '__main__': 811 if __name__ == '__main__':
807 sys.exit(main(sys.argv)) 812 sys.exit(main(sys.argv))
OLDNEW
« build/android/pylib/constants.py ('K') | « build/android/pylib/constants.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698