Bug 103661

Summary: webkitpy's run_webkit_tests should initialize the printer earlier on
Product: WebKit Reporter: Peter Beverloo <peter>
Component: Tools / TestsAssignee: Dirk Pranke <dpranke>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dpranke, eric, ojan, rniwa, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch eric: review+

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.