google / mobly

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

Add a retry mechanism for the ADB command "root" #691

Closed chuanhsiao closed 3 years ago

chuanhsiao commented 3 years ago

Sometimes Error "adb: unable to connect for root: closed" occurs when calling AndroidDevice.reboot(), this mechanism attempts to avoid this error causes a test to be stopped.


This change is Reviewable