Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73550358 authored by Jack He's avatar Jack He
Browse files

Cert: Use AdbProxy.tcp_forward() instead of raw forward command

* Raw forward command returns str which will always fail the test
* This CL fixes it

Test: source gd/cert/run
Bug: 152366017
Bug: 152359807
Change-Id: I7448c52361428c1c1d5df0ea511d98767f77ea82
parent 9b6f6acc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -198,8 +198,7 @@ class GdDeviceBase:
        :param device_port: device port, int
        :return: host port int
        """
        error_or_port = self.adb.forward(
            "tcp:%d tcp:%d" % (host_port, device_port), ignore_status=True)
        error_or_port = self.adb.tcp_forward(host_port, device_port)
        if not error_or_port:
            logging.debug("host port %d was already forwarded" % host_port)
            return host_port