RESOLVED FIXED 90413
webkit-patch rebaseline-expectations should share code with rebaseline-all
https://bugs.webkit.org/show_bug.cgi?id=90413
Summary webkit-patch rebaseline-expectations should share code with rebaseline-all
Ojan Vafai
Reported 2012-07-02 16:51:18 PDT
webkit-patch rebaseline-expectations should do the same work as rebaseline-all
Attachments
Patch (22.33 KB, patch)
2012-07-02 16:52 PDT, Ojan Vafai
no flags
Patch (24.42 KB, patch)
2012-07-02 18:01 PDT, Ojan Vafai
no flags
Ojan Vafai
Comment 1 2012-07-02 16:52:04 PDT
Dirk Pranke
Comment 2 2012-07-02 17:04:55 PDT
Comment on attachment 150499 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=150499&action=review > Tools/Scripts/webkitpy/tool/commands/rebaseline.py:321 > + name = "rebaseline-all" I wonder if rebaseline-json or rebaseline-from-stdin would be a better name to indicate this wasn't a user-facing command. > Tools/Scripts/webkitpy/tool/commands/rebaseline.py:350 > + def _rebaseline_port(self, port_name, test_list): it wasn't at all obvious what this routine was doing or what the difference was between this and _rebaseline(). Can you change the name or add comments? Something like add_port_to_test_list or something? In particular, this method isn't actually rebaselining anything. Also, I'm not wild about the fact that you're modifying test_list in place (since I don't think we modify dicts passed as input parameters very often, I wasn't expecting it). Does it maybe make more sense to make test_list be an instance variable or to return a modified version from the method instead?
Dirk Pranke
Comment 3 2012-07-02 17:05:34 PDT
it might also be better to change the subject for this bug; I thought at first you were trying to make both commands do the same thing, not share code.
Ojan Vafai
Comment 4 2012-07-02 18:01:02 PDT
Dirk Pranke
Comment 5 2012-07-02 18:29:25 PDT
Comment on attachment 150509 [details] Patch All happy. Thanks!
WebKit Review Bot
Comment 6 2012-07-02 20:36:24 PDT
Comment on attachment 150509 [details] Patch Clearing flags on attachment: 150509 Committed r121724: <http://trac.webkit.org/changeset/121724>
WebKit Review Bot
Comment 7 2012-07-02 20:36:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.