RESOLVED FIXED59761
fix pretty_patch_available and wdiff_available
https://bugs.webkit.org/show_bug.cgi?id=59761
Summary fix pretty_patch_available and wdiff_available
Ojan Vafai
Reported 2011-04-28 16:37:45 PDT
fix pretty_patch_available and wdiff_available
Attachments
Patch (4.67 KB, patch)
2011-04-28 16:39 PDT, Ojan Vafai
no flags
Patch (9.79 KB, patch)
2011-04-29 11:11 PDT, Ojan Vafai
tony: review+
Ojan Vafai
Comment 1 2011-04-28 16:39:41 PDT
Tony Chang
Comment 2 2011-04-28 16:47:43 PDT
Comment on attachment 91588 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=91588&action=review > Tools/Scripts/webkitpy/layout_tests/port/base.py:211 > + def check_wdiff(self, logging=True): > + return False What is the logging param for? > Tools/Scripts/webkitpy/layout_tests/port/chromium_linux.py:110 > - result = self._check_wdiff_install() and result > + result = self.check_wdiff() and result I think mac can use wdiff too.
Dirk Pranke
Comment 3 2011-04-28 16:52:42 PDT
Patch looks like it's along the lines we discussed and so generally looks fine, but it needs to be implemented more broadly or I'm worried about the inconsistencies that might arise (shouldn't be much additional work). See the specific comments. > Tools/Scripts/webkitpy/layout_tests/port/base.py:211 > + return False wdiff actually exists (or can) on nearly every port, so we need to provide a better default implementation. There's also a _check_wdiff in chromium_mac that should be renamed, and you should probably add a check_wdiff() call to the chromium implementation of check_build(). > Tools/Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py:84 > + This should probably be a generic test in port/port_testcase.py instead. Tony - the logging parameter controls whether the routine will log any messages if it finds wdiff isn't available; it is called with a value of True by port.check_build().
Ojan Vafai
Comment 4 2011-04-29 11:11:27 PDT
Dirk Pranke
Comment 5 2011-04-29 12:13:26 PDT
Comment on attachment 91705 [details] Patch looks great! Thanks for cleaning this up.
Ojan Vafai
Comment 6 2011-04-29 12:17:46 PDT
Note You need to log in before you can comment on or make changes to this bug.