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

Unified Diff: mojo/tools/apptest_runner.py

Issue 1162923004: Move the logic to set up a local origin for shell run to shell_arguments.py. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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') | no next file » | 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 98caf45b6a0bfa75bad8fc8fe6236a1ae1fe1fc6..77255f6495f7b6decc96833380dc17c41045451f 100755
--- a/mojo/tools/apptest_runner.py
+++ b/mojo/tools/apptest_runner.py
@@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""A test runner for gtest application tests."""
+"""A test runner for application tests."""
import argparse
import logging
@@ -14,6 +14,7 @@ devtools.add_lib_to_path()
from devtoolslib.android_shell import AndroidShell
from devtoolslib.linux_shell import LinuxShell
from devtoolslib.apptest_runner import run_apptests
+from devtoolslib import shell_arguments
from mopy import gtest
from mopy.config import Config
@@ -44,7 +45,8 @@ def main():
if config.target_os == Config.OS_ANDROID:
shell = AndroidShell(paths.adb_path)
shell.InstallApk(paths.target_mojo_shell_path)
- extra_args.append(shell.SetUpLocalOrigin(paths.build_dir, fixed_port=False))
+ extra_args.extend(shell_arguments.ConfigureLocalOrigin(
+ shell, paths.build_dir, fixed_port=False))
else:
shell = LinuxShell(paths.mojo_shell_path)
« no previous file with comments | « mojo/tools/android_mojo_shell.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698