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

Unified Diff: mojo/tools/android_mojo_shell.py

Issue 963713003: Support --origin in android_mojo_shell. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Move atexit.register(StopShell) to StartShell. Created 5 years, 10 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/apptest_runner.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 d2af9564b4ff9970c887c67075d5135b8e35ecbd..d731afe9ef7b41a7521e3bb8ca7901879d586484 100755
--- a/mojo/tools/android_mojo_shell.py
+++ b/mojo/tools/android_mojo_shell.py
@@ -8,7 +8,6 @@ import logging
import sys
from mopy.config import Config
-from mopy.paths import Paths
from mopy import android
USAGE = ("android_mojo_shell.py "
@@ -41,17 +40,19 @@ def main():
dest='debug', action='store_false')
parser.add_argument('--target-cpu', help='CPU architecture to run for.',
choices=['x64', 'x86', 'arm'])
+ parser.add_argument('--origin', help='Origin for mojo: URLs.')
launcher_args, args = parser.parse_known_args()
config = Config(target_os=Config.OS_ANDROID,
target_cpu=launcher_args.target_cpu,
is_debug=launcher_args.debug)
- args.append(android.PrepareShellRun(config))
+ extra_shell_args = android.PrepareShellRun(config, launcher_args.origin)
+ args.extend(extra_shell_args)
+
android.CleanLogs()
p = android.ShowLogs()
android.StartShell(args, sys.stdout, p.terminate)
-
return 0
« no previous file with comments | « no previous file | mojo/tools/apptest_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698