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

Unified Diff: mojo/devtools/common/devtoolslib/shell_config.py

Issue 1397193005: mojo_run: support parallel Android runs of mojo_run. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
Index: mojo/devtools/common/devtoolslib/shell_config.py
diff --git a/mojo/devtools/common/devtoolslib/shell_config.py b/mojo/devtools/common/devtoolslib/shell_config.py
index b7f59d2d60c9650d8e4762b35a71bc7044656e57..b3faa05ba773e99d7b6fa16aa267d77632c40a3c 100644
--- a/mojo/devtools/common/devtoolslib/shell_config.py
+++ b/mojo/devtools/common/devtoolslib/shell_config.py
@@ -37,6 +37,7 @@ class ShellConfig(object):
self.target_device = None
self.logcat_tags = None
self.require_root = False
+ self.free_host_ports = False
# Desktop-only.
self.use_osmesa = None
@@ -77,6 +78,9 @@ def add_shell_arguments(parser):
android_group.add_argument('--target-device', help='Device to run on.')
android_group.add_argument('--logcat-tags', help='Comma-separated list of '
'additional logcat tags to display.')
+ android_group.add_argument('--free-host-ports', action='store_true',
+ help='Use system-allocated ports on the host when '
+ 'spawning local servers.')
desktop_group = parser.add_argument_group('Desktop-only',
'These arguments apply only when running on desktop.')
@@ -156,6 +160,7 @@ def get_shell_config(script_args):
'adb')
shell_config.target_device = script_args.target_device
shell_config.logcat_tags = script_args.logcat_tags
+ shell_config.free_host_ports = script_args.free_host_ports
# Desktop-only.
shell_config.use_osmesa = script_args.use_osmesa

Powered by Google App Engine
This is Rietveld 408576698