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

Unified Diff: mojo/tools/android_mojo_shell.py

Issue 1100823005: Allow android python shell run script to not stop if multiple devices are connected. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | mojo/tools/mopy/android.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/android_mojo_shell.py
diff --git a/mojo/tools/android_mojo_shell.py b/mojo/tools/android_mojo_shell.py
index c762bde96853cbce27b988eaf6195bb5a7936fbe..f1f520e3fa3203a5e07af24626de7dbc098c92ee 100755
--- a/mojo/tools/android_mojo_shell.py
+++ b/mojo/tools/android_mojo_shell.py
@@ -42,6 +42,7 @@ def main():
parser.add_argument('--target-cpu', help='CPU architecture to run for.',
choices=['x64', 'x86', 'arm'])
parser.add_argument('--origin', help='Origin for mojo: URLs.')
+ parser.add_argument('--target-device', help='Device to run on.')
launcher_args, args = parser.parse_known_args()
config = Config(target_os=Config.OS_ANDROID,
@@ -49,7 +50,7 @@ def main():
is_debug=launcher_args.debug)
paths = Paths(config)
shell = AndroidShell(paths.target_mojo_shell_path, paths.build_dir,
- paths.adb_path)
+ paths.adb_path, launcher_args.target_device)
extra_shell_args = shell.PrepareShellRun(launcher_args.origin)
args.extend(extra_shell_args)
« no previous file with comments | « no previous file | mojo/tools/mopy/android.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698