OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Runs the Monkey tests on one or more devices.""" | 6 """Runs the Monkey tests on one or more devices.""" |
7 import logging | 7 import logging |
8 import optparse | 8 import optparse |
9 import random | 9 import random |
10 import sys | 10 import sys |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 parser.print_help(sys.stderr) | 149 parser.print_help(sys.stderr) |
150 parser.error('Unknown arguments: %s' % args) | 150 parser.error('Unknown arguments: %s' % args) |
151 | 151 |
152 if not options.package_name: | 152 if not options.package_name: |
153 parser.print_help(sys.stderr) | 153 parser.print_help(sys.stderr) |
154 parser.error('Missing package name') | 154 parser.error('Missing package name') |
155 | 155 |
156 if options.category: | 156 if options.category: |
157 options.category = options.category.split(',') | 157 options.category = options.category.split(',') |
158 | 158 |
| 159 # TODO(gkanwar): This should go away when the host-driven tests are refactored |
| 160 options.num_retries = 1 |
| 161 |
159 DispatchPythonTests(options) | 162 DispatchPythonTests(options) |
160 | 163 |
161 | 164 |
162 if __name__ == '__main__': | 165 if __name__ == '__main__': |
163 main() | 166 main() |
OLD | NEW |