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

Unified Diff: mojo/tools/apptest_runner.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 | « mojo/tools/android_mojo_shell.py ('k') | 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/apptest_runner.py
diff --git a/mojo/tools/apptest_runner.py b/mojo/tools/apptest_runner.py
index f2b459b980476f71a9651fb52b9cc609b3614d20..11adf27209714b064e276b1ce2e78159c18e8b0f 100755
--- a/mojo/tools/apptest_runner.py
+++ b/mojo/tools/apptest_runner.py
@@ -43,9 +43,9 @@ def main():
apptest_list = execution_globals["tests"]
_logging.debug("Test list: %s" % apptest_list)
- android_origin_argument = None
+ extra_args = []
if config.target_os == Config.OS_ANDROID:
- android_origin_argument = android.PrepareShellRun(config)
+ extra_args.extend(android.PrepareShellRun(config))
gtest.set_color()
mojo_paths = Paths(config)
@@ -54,9 +54,7 @@ def main():
for apptest_dict in apptest_list:
apptest = apptest_dict["test"]
test_args = apptest_dict.get("test-args", [])
- shell_args = apptest_dict.get("shell-args", [])
- if android_origin_argument:
- shell_args.append(android_origin_argument)
+ shell_args = apptest_dict.get("shell-args", []) + extra_args
launched_services = apptest_dict.get("launched-services", [])
print "Running " + apptest + "...",
« no previous file with comments | « mojo/tools/android_mojo_shell.py ('k') | mojo/tools/mopy/android.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698