Bug 1351369 - Add missing command queue attribute in wpt harness, r=majazf draft
authorJames Graham <james@hoppipolla.co.uk>
Tue, 28 Mar 2017 17:24:04 +0100
changeset 552532 7845633899201b75c7fe69a18597690d1ed8bef4
parent 552506 592fc93705a1fa36fcd2e674141f514fcc781117
child 621836 83df4968d385eaed15047f8acc05f5fc54a2b309
push id51375
push userbmo:james@hoppipolla.co.uk
push dateTue, 28 Mar 2017 16:24:17 +0000
reviewersmajazf
bugs1351369
milestone55.0a1
Bug 1351369 - Add missing command queue attribute in wpt harness, r=majazf MozReview-Commit-ID: FCiPjqoaIPF
testing/web-platform/harness/wptrunner/testrunner.py
--- a/testing/web-platform/harness/wptrunner/testrunner.py
+++ b/testing/web-platform/harness/wptrunner/testrunner.py
@@ -152,17 +152,17 @@ def next_manager_number():
 
 class BrowserManager(object):
     init_lock = threading.Lock()
 
     def __init__(self, logger, browser, command_queue, no_timeout=False):
         self.logger = logger
         self.browser = browser
         self.no_timeout = no_timeout
-
+        self.command_queue = command_queue
         self.started = False
 
         self.init_timer = None
 
     def init(self):
         """Launch the browser that is being tested,
         and the TestRunner process that will run the tests."""
         # It seems that this lock is helpful to prevent some race that otherwise
@@ -477,16 +477,17 @@ class TestRunnerManager(threading.Thread
 
     def init_succeeded(self):
         assert isinstance(self.state, RunnerManagerState.initalizing)
         self.browser.after_init()
         return RunnerManagerState.running(self.state.test,
                                           self.state.test_queue)
 
     def init_failed(self):
+        self.logger.debug("init_failed")
         assert isinstance(self.state, RunnerManagerState.initalizing)
         self.browser.after_init()
         self.stop_runner(force=True)
         return RunnerManagerState.initalizing(self.state.test,
                                               self.state.test_queue,
                                               self.state.failure_count + 1)
 
     def get_next_test(self, test_queue=None):