Chromium Code Reviews| Index: tools/sharding_supervisor/sharding_supervisor.py |
| =================================================================== |
| --- tools/sharding_supervisor/sharding_supervisor.py (revision 216642) |
| +++ tools/sharding_supervisor/sharding_supervisor.py (working copy) |
| @@ -56,6 +56,13 @@ |
| group.add_option( |
| '--slave-index', type='int', default=0, help='Converted to --shards') |
| parser.add_option_group(group) |
| + group = optparse.OptionGroup( |
| + parser, 'Options of run_test_cases.py passed through') |
| + group.add_option( |
| + '--retries', type='int', help='Kept as --retries') |
| + group.add_option( |
| + '--verbose', action='store_true', help='Kept as --verbose') |
|
M-A Ruel
2013/08/12 14:29:59
default=0, action='count'
Alexander Potapenko
2013/08/12 14:33:53
Done.
|
| + parser.add_option_group(group) |
| parser.disable_interspersed_args() |
| options, args = parser.parse_args() |
| @@ -72,6 +79,10 @@ |
| ] |
| if options.timeout is not None: |
| cmd.extend(['--timeout', str(options.timeout)]) |
| + if options.retries is not None: |
| + cmd.extend(['--retries', str(options.retries)]) |
| + if options.verbose is not None: |
| + cmd.extend(['--verbose']) |
|
M-A Ruel
2013/08/12 14:29:59
cmd.extend(['--verbose'] * options.verbose)
Alexander Potapenko
2013/08/12 14:33:53
Done.
|
| run_test_cases_extra_args, rest = pop_known_arguments(args) |