mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
c1c60beda1
commit
da8677221e
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue