RESOLVED FIXED103661
webkitpy's run_webkit_tests should initialize the printer earlier on
https://bugs.webkit.org/show_bug.cgi?id=103661
Summary webkitpy's run_webkit_tests should initialize the printer earlier on
Peter Beverloo
Reported 2012-11-29 12:36:58 PST
Before creating the Printer, which creates the MeteredStream that handles the log messages run_webkit_tests.py's run() sets up derived options. _set_up_derived_options() calls various methods on the Port objects. As this is done without a printer, they aren't able to use normal loggers and have to resort to writing to stderr directly. There are FIXMEs in at least the Mac and Chromium-Android Ports, and the Chromium-Android Port imports "sys" for this reason alone.
Attachments
Patch (12.12 KB, patch)
2012-12-03 14:28 PST, Dirk Pranke
eric: review+
Dirk Pranke
Comment 1 2012-12-03 14:28:58 PST
Eric Seidel (no email)
Comment 2 2012-12-03 15:03:18 PST
Comment on attachment 177332 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=177332&action=review FANTASTIC. > Tools/Scripts/webkitpy/layout_tests/port/mac.py:241 > - except ScriptError, e: > + except ScriptError: > _log.warning('Unable to sample process.') We could log the actual error. :)
Dirk Pranke
Comment 3 2012-12-03 15:05:26 PST
(In reply to comment #2) > (From update of attachment 177332 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=177332&action=review > > FANTASTIC. > > > Tools/Scripts/webkitpy/layout_tests/port/mac.py:241 > > - except ScriptError, e: > > + except ScriptError: > > _log.warning('Unable to sample process.') > > We could log the actual error. :) Sure :).
Dirk Pranke
Comment 4 2012-12-03 15:08:57 PST
Peter Beverloo
Comment 5 2012-12-04 04:12:14 PST
Awesome, thanks for following up!!
Note You need to log in before you can comment on or make changes to this bug.