-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrumentation check fails on some devices #353
Comments
Should the framework automatically mask such failures? Maybe exposing the option to retry rather than making it the default would be a better approach. |
|
An exception was raised and made its way all the way back up to the test. It is exposed, and IMO a valuable signal (what if they were testing for device crashes?). You could just as easily wrap the entire register snippet call in a retry. |
A retry does not mask that exception though. This is a pretty standard way to get around adb flakiness in systems that deal with Android. |
This is not a high priority thing though as it rarely happens... |
Perhaps we could in addition throw a better error for such cases. |
On certain devices from huawei, micromax, and asus, the adb cmd to list instrumentation is flaky.
On rare occasions, the cmd prints error with ret code 0:
Retrying the same cmd worked.
Looks like we should do a sleep and retry for the instrumentation check in
snippe_client
.The text was updated successfully, but these errors were encountered: