[TIMOB-27841] test: handle when android emulator restarts itself mid-suite
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Low |
Status | Closed |
Resolution | Done |
Resolution Date | 2020-04-14T19:47:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2020-04-13T14:48:15.000+0000 |
Updated | 2020-04-17T15:53:59.000+0000 |
Description
Sometimes the android emulator will automatically update one of the google play services modules (typically maps) and will spit out something like this in the logs:
[ERROR] FusedLocationProvider: (main) [30620,30621] Google Play Services connection suspended!
[INFO] ChimeraModuleLdr: Module config changed, forcing restart due to module com.google.android.gms.maps_dynamite
[INFO] Process: Sending signal. PID: 19111 SIG: 9
We should detect this in our test suite handling code and either immediately fail or restart/retry. Otherwise the test suite effectively hangs until Jenkins kills it via the timeout.
Pushed change to test suite to sniff for the log string indicating this occurred and have it exit with failure immediately. I don't think we can properly wipe test results and restart the app...
Closing ticket, as suite passed all tests in Jenkins.