RESOLVED FIXED101140
webkitpy: clean up options for specifying multiple platforms at once
https://bugs.webkit.org/show_bug.cgi?id=101140
Summary webkitpy: clean up options for specifying multiple platforms at once
Dirk Pranke
Reported 2012-11-02 19:27:35 PDT
webkitpy: clean up options for specifying multiple platforms at once
Attachments
Patch (10.15 KB, patch)
2012-11-02 19:29 PDT, Dirk Pranke
ojan: review+
Dirk Pranke
Comment 1 2012-11-02 19:29:21 PDT
Ojan Vafai
Comment 2 2012-11-02 22:19:56 PDT
Comment on attachment 172194 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=172194&action=review > Tools/Scripts/webkitpy/layout_tests/port/factory.py:39 > +def platform_options(globs=False): This variable name doesn't read like a boolean. It confused me at first reading the code. How about "allow_globs" or "use_globs"? > Tools/Scripts/webkitpy/layout_tests/port/factory.py:44 > + const=('chromium' if globs else 'chromium'), I think you're missing a *. > Tools/Scripts/webkitpy/layout_tests/port/factory.py:138 > + If platform is specified, we will glob-match all ports""" Missing a "not"? > Tools/Scripts/webkitpy/tool/commands/rebaseline.py:-356 > - return super(RebaselineJson, self).__init__(options=[ lol whoops
Dirk Pranke
Comment 3 2012-11-05 10:35:22 PST
(In reply to comment #2) > (From update of attachment 172194 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=172194&action=review > > > Tools/Scripts/webkitpy/layout_tests/port/factory.py:39 > > +def platform_options(globs=False): > > This variable name doesn't read like a boolean. It confused me at first reading the code. How about "allow_globs" or "use_globs"? > Makes sense. > > Tools/Scripts/webkitpy/layout_tests/port/factory.py:44 > > + const=('chromium' if globs else 'chromium'), > > I think you're missing a *. > Good catch. > > Tools/Scripts/webkitpy/layout_tests/port/factory.py:138 > > + If platform is specified, we will glob-match all ports""" > > Missing a "not"? > Right.
Dirk Pranke
Comment 4 2012-11-05 11:24:57 PST
Note You need to log in before you can comment on or make changes to this bug.