@ -263,8 +263,8 @@ def _ParseSendChangeOptions(options):
values [ ' revision ' ] = options . revision
if options . clobber :
values [ ' clobber ' ] = ' true '
if options . test s :
values [ ' test s ' ] = ' , ' . join ( options . test s )
if options . test filter :
values [ ' test filter ' ] = ' , ' . join ( options . test filter )
if options . root :
values [ ' root ' ] = options . root
if options . patchlevel :
@ -496,10 +496,14 @@ def TryChange(argv,
help = " Override which project to use. Projects are defined "
" server-side to define what default bot set to use " )
# Override the list of tests to run, use multiple times to list many tests
# (or comma separated)
group . add_option ( " -t " , " --tests " , action = " append " ,
help = optparse . SUPPRESS_HELP )
group . add_option ( " -t " , " --testfilter " , action = " append " ,
help = " Add a gtest_filter to a test. Use multiple times to "
" specify filters for different tests. (i.e. "
" --testfilter base_unittests:ThreadTest.* "
" --testfilter ui_tests) If you specify any testfilters "
" the test results will not be reported in rietveld and "
" only tests with filters will run. " )
parser . add_option_group ( group )
group = optparse . OptionGroup ( parser , " Patch to run " )
@ -683,6 +687,11 @@ def TryChange(argv,
else :
print ( ' Results will be emailed to: ' + options . email )
# Prevent rietveld updates if we aren't running all the tests.
if options . testfilter is not None :
options . issue = None
options . patchset = None
# Send the patch.
if options . send_patch :
# If forced.