Prevent waiting for NexusPlayers indefinitely
authorKevin Lubick <kjlubick@google.com>
Thu, 9 Feb 2017 21:13:10 +0000 (16:13 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 9 Feb 2017 21:33:35 +0000 (21:33 +0000)
commit549638c8525eaa8e78ac8b758325c749cd3fba45
treed19b3d320e23f17ed87209c35172cf2733ecad27
parent3d1a6bc5f3124dd5cd237ccc39ead26fe4b3355f
Prevent waiting for NexusPlayers indefinitely

Also, I noticed that sometimes the NexusPlayers would come back up such
that adb would recognize them, but not such that the sys.boot_completed
was set to 1.  This was usually fixed by rebooting the devices again.

This code will reboot them up to three times in total before giving
up and killing the device.

BUG=skia:
TBR=borenet,rmistry
NOTREECHECKS=true
NOTRY=true

Change-Id: Ic2217855ad643ab256a598a3f55a67ba84ebcb25
Reviewed-on: https://skia-review.googlesource.com/8285
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
infra/bots/recipe_modules/flavor/gn_android_flavor.py
infra/bots/recipe_modules/perf/example.expected/Perf-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-GN_Android.json
infra/bots/recipe_modules/perf/example.expected/Perf-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-GN_Android_Vulkan.json
infra/bots/recipe_modules/perf/example.expected/failed_push.json
infra/bots/recipe_modules/sktest/example.expected/Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Release-GN_Android.json
infra/bots/recipe_modules/sktest/example.expected/Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-GN_Android_Vulkan.json
infra/bots/recipe_modules/sktest/example.expected/failed_push.json