Commit 484ca521 authored by skyostil@chromium.org's avatar skyostil@chromium.org

[Android] Fix Android port forwarder command line tool

The port forwarder command line tool was broken as
https://chromiumcodereview.appspot.com/12211070 made Forwarder require a
valid valgrind tool instance to be passed in. Fix the problem by
giving Forwarder a default tool.

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12262011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182239 0039d316-1c4b-4281-b951-d872f2087c98
parent aaa55231
......@@ -17,6 +17,7 @@ import time
from pylib import android_commands, forwarder
from pylib.utils import run_tests_helper
from pylib.valgrind_tools import CreateTool
def main(argv):
......@@ -53,9 +54,10 @@ def main(argv):
sys.exit(1)
adb = android_commands.AndroidCommands(options.device)
tool = CreateTool(None, adb)
forwarder_instance = forwarder.Forwarder(adb, options.build_type)
try:
forwarder_instance.Run(port_pairs, None, options.host)
forwarder_instance.Run(port_pairs, tool, options.host)
while True:
time.sleep(60)
except KeyboardInterrupt:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment