diff options
Diffstat (limited to 'infra/bots/recipe_modules/flavor/gn_android_flavor.py')
-rw-r--r-- | infra/bots/recipe_modules/flavor/gn_android_flavor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/infra/bots/recipe_modules/flavor/gn_android_flavor.py b/infra/bots/recipe_modules/flavor/gn_android_flavor.py index 3c77e849d7..a994f74bcc 100644 --- a/infra/bots/recipe_modules/flavor/gn_android_flavor.py +++ b/infra/bots/recipe_modules/flavor/gn_android_flavor.py @@ -53,10 +53,9 @@ class GNAndroidFlavorUtils(default_flavor.DefaultFlavorUtils): import time kicks = 0 - while kicks < 2: + while True: times = 0 - while times < 30: print 'Waiting for the device to be connected and ready.' try: @@ -70,6 +69,8 @@ class GNAndroidFlavorUtils(default_flavor.DefaultFlavorUtils): # no device connected/authorized yet pass time.sleep(5) + if kicks >= 3: + break print 'Giving the device a "kick" by trying to reboot it.' kicks += 1 print subprocess.check_output(['adb', 'reboot']) |