google / mobly

E2E test framework for tests with complex environment requirements.
https://github.com/google/mobly
Apache License 2.0
628 stars 175 forks source link

In RPC client lib, check if host port is in use before clearing it #767

Closed xianyuanjia closed 2 years ago

xianyuanjia commented 2 years ago

Check if the host port is currently forwarded by adb before calling the adb forward --remove command. This will prevent adb exceptions from appearing in log output.


This change is Reviewable