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

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

Cert: Free resources occupying required ports during setup

* For ports that are supposed to be listening on host, kill
  processes that occupy these ports using psutil
* For ports that are supposed to be adb and maybe ssh forward
  from Android device to host machine:
  1. Try to cancel any existing port forwarding or reversal
     for those ports
  2. If port portwarding or reversal still fails, try rebooting
     Android once and try again before failing the test

Bug: 153274925
Test: gd/cert/run --host
Change-Id: I28b430366f4a241ce07a79155f6260db1e8b57f9
parent 1ac34f73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment