From 0531bf800b33b45e4975a9cbe3153ebe866a3b9b Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Wed, 7 Feb 2018 13:33:44 -0700 Subject: [PATCH] Bug 1436262 - Improve efficiency of detection of end of test Android test runs; r=jmaher Once a test summary is seen, check for application completion more often, so that we can complete the test run sooner. --- build/mobile/remoteautomation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/mobile/remoteautomation.py b/build/mobile/remoteautomation.py index e9a14c821a3f..ec9e44a3ed6e 100644 --- a/build/mobile/remoteautomation.py +++ b/build/mobile/remoteautomation.py @@ -415,6 +415,8 @@ class RemoteAutomation(Automation): slowLog = True if hasOutput: noOutputTimer = 0 + if self.counts and 'pass' in self.counts and self.counts['pass'] > 0: + interval = 0.5 time.sleep(interval) timer += interval noOutputTimer += interval