Avoid endless testrunner restart loops.

If the first test selected by a testrunner thread had a CRASH expectation,
the testrunner believed that it needed to restart and would never actually
get around to running the test.
This commit is contained in:
Josh Matthews 2017-10-02 18:12:33 +02:00 committed by Ms2ger
parent c1c60beda1
commit da8677221e

View file

@ -154,6 +154,7 @@ class BrowserManager(object):
self.browser = browser
self.no_timeout = no_timeout
self.browser_settings = None
self.last_test = None
self.started = False
@ -163,8 +164,9 @@ class BrowserManager(object):
browser_settings = self.browser.settings(test)
restart_required = ((self.browser_settings is not None and
self.browser_settings != browser_settings) or
test.expected() == "CRASH")
(self.last_test != test and test.expected() == "CRASH"))
self.browser_settings = browser_settings
self.last_test = test
return restart_required
def init(self):