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

Unified Diff: tools/sharding_supervisor/sharding_supervisor.py

Issue 22734004: Extend sharding_supervisor.py to accept the --verbose and --retries options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sharding_supervisor/sharding_supervisor.py
===================================================================
--- tools/sharding_supervisor/sharding_supervisor.py (revision 216989)
+++ 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='count', default=0, help='Kept as --verbose')
+ 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'] * options.verbose)
run_test_cases_extra_args, rest = pop_known_arguments(args)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698