actually call the test case defined callback functions
Change-Id: I973d0e1b1367cb47cb1c03f9a4f26b857656195e
diff --git a/utils/python/controllers/adb.py b/utils/python/controllers/adb.py
index 40b64c2..00f952a 100644
--- a/utils/python/controllers/adb.py
+++ b/utils/python/controllers/adb.py
@@ -142,7 +142,7 @@
return self._exec_cmd(' '.join((self.adb_str, name, arg_str)))
def tcp_forward(self, host_port, device_port):
- """Starts tcp forwarding.
+ """Starts TCP forwarding.
Args:
host_port: Port number to use on the computer.
@@ -150,7 +150,17 @@
"""
self.forward("tcp:{} tcp:{}".format(host_port, device_port))
+ def reverse_tcp_forward(self, device_port, host_port):
+ """Starts reverse TCP forwarding.
+
+ Args:
+ device_port: Port number to use on the android device.
+ host_port: Port number to use on the computer.
+ """
+ self.reverse("tcp:{} tcp:{}".format(device_port, host_port))
+
def __getattr__(self, name):
+
def adb_call(*args):
clean_name = name.replace('_', '-')
arg_str = ' '.join(str(elem) for elem in args)