Bug 1558867 - Report log for short runs of 'mach gtest'; r=bc

This allows me to run 'mach gtest "APZ*"' and other short runs of gtest
that were previously failing.

Differential Revision: https://phabricator.services.mozilla.com/D34764

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Geoff Brown 2019-06-12 20:38:37 +00:00
parent c2697b1ae8
commit 710630afc9

View File

@ -236,13 +236,13 @@ class AppWaiter(object):
return top
def wait_for_start(self, package):
if self.update_log():
# if log content is available, assume the app started; otherwise,
# a short run (few tests) might complete without ever being detected
# in the foreground
return package
top = None
while top != package and not self.start_timed_out():
if self.update_log():
# if log content is available, assume the app started; otherwise,
# a short run (few tests) might complete without ever being detected
# in the foreground
return package
time.sleep(1)
top = self.get_top()
return top