RESOLVED FIXED 90503
nrwt: clean up exception handling and make sure we log some more failures
https://bugs.webkit.org/show_bug.cgi?id=90503
Summary nrwt: clean up exception handling and make sure we log some more failures
Dirk Pranke
Reported 2012-07-03 15:44:39 PDT
nrwt: clean up exception handling and make sure we log some more failures
Attachments
Patch (10.94 KB, patch)
2012-07-03 15:46 PDT, Dirk Pranke
ojan: review+
Dirk Pranke
Comment 1 2012-07-03 15:46:42 PDT
WebKit Review Bot
Comment 2 2012-07-03 15:48:56 PDT
Attachment 150683 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/webkitpy..." exit_code: 1 Tools/Scripts/webkitpy/layout_tests/controllers/manager_worker_broker.py:415: deprecated form of raising exception [pep8/W602] [5] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ojan Vafai
Comment 3 2012-07-03 16:14:42 PDT
Comment on attachment 150683 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=150683&action=review > Tools/Scripts/webkitpy/layout_tests/controllers/worker.py:120 > + # happenss (and log the appropriate messages). happens > Tools/Scripts/webkitpy/layout_tests/controllers/worker.py:198 > + driver = self._driver > + self._driver = None > + if driver: > _log.debug("%s killing driver" % self._name) > - self._driver.stop() > - self._driver = None > + driver.stop() We don't need to worry about thread-safety, right? In that case, couldn't you just move the self._drive = None line to being right after the if statement? Then you wouldn't need the local variable. Not a big deal, just a little easier to read.
Dirk Pranke
Comment 4 2012-07-03 17:15:26 PDT
Note You need to log in before you can comment on or make changes to this bug.