Commit b3b00a41 authored by maruel@chromium.org's avatar maruel@chromium.org

Add --target support to trychange.py.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/155032

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19878 0039d316-1c4b-4281-b951-d872f2087c98
parent a05be0ba
...@@ -24,7 +24,7 @@ import gcl ...@@ -24,7 +24,7 @@ import gcl
import gclient import gclient
import upload import upload
__version__ = '1.1' __version__ = '1.1.1'
# Constants # Constants
...@@ -253,6 +253,8 @@ def _ParseSendChangeOptions(options): ...@@ -253,6 +253,8 @@ def _ParseSendChangeOptions(options):
values['issue'] = options.issue values['issue'] = options.issue
if options.patchset: if options.patchset:
values['patchset'] = options.patchset values['patchset'] = options.patchset
if options.target:
values['target'] = options.target
return values return values
...@@ -423,6 +425,10 @@ def TryChange(argv, ...@@ -423,6 +425,10 @@ def TryChange(argv,
group.add_option("-c", "--clobber", action="store_true", group.add_option("-c", "--clobber", action="store_true",
help="Force a clobber before building; e.g. don't do an " help="Force a clobber before building; e.g. don't do an "
"incremental build") "incremental build")
# TODO(maruel): help="Select a specific configuration, usually 'debug' or "
# "'release'"
group.add_option("--target", help=optparse.SUPPRESS_HELP)
# Override the list of tests to run, use multiple times to list many tests # Override the list of tests to run, use multiple times to list many tests
# (or comma separated) # (or comma separated)
group.add_option("-t", "--tests", action="append", group.add_option("-t", "--tests", action="append",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment