Bug 88945 - webkitpy: rework the TestExpectations style checker in preparation for the cascade
Summary: webkitpy: rework the TestExpectations style checker in preparation for the ca...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on: 88942
Blocks: 65834 88946
  Show dependency treegraph
 
Reported: 2012-06-12 19:29 PDT by Dirk Pranke
Modified: 2012-06-13 12:46 PDT (History)
6 users (show)

See Also:


Attachments
Patch (4.14 KB, patch)
2012-06-12 19:30 PDT, Dirk Pranke
ojan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2012-06-12 19:29:56 PDT
webkitpy: rework the TestExpectations style checker in preparation for the cascade
Comment 1 Dirk Pranke 2012-06-12 19:30:48 PDT
Created attachment 147216 [details]
Patch
Comment 2 Ojan Vafai 2012-06-13 09:42:31 PDT
Comment on attachment 147216 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=147216&action=review

> Tools/Scripts/webkitpy/style/checkers/test_expectations.py:82
> +        expectations = parser.parse('expectations', expectations_str)
> +        if overrides:
> +            expectations += parser.parse('overrides', overrides)

This should have a FIXME to handle cascading expectations properly.

I think each style error line should probably print out the file the style error is in.
Comment 3 Dirk Pranke 2012-06-13 10:12:30 PDT
(In reply to comment #2)
> (From update of attachment 147216 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=147216&action=review
> 
> > Tools/Scripts/webkitpy/style/checkers/test_expectations.py:82
> > +        expectations = parser.parse('expectations', expectations_str)
> > +        if overrides:
> > +            expectations += parser.parse('overrides', overrides)
> 
> This should have a FIXME to handle cascading expectations properly.
> 
> I think each style error line should probably print out the file the style error is in.

Probably, but that'll require reworking this file further; right now the style checker just passes the string in so we don't even know the filename.

As a sidenote, I'm pretty sure the overrides flag is always False and isn't actually used. 

I'll add some comments, though. Thanks for the reviews!
Comment 4 Dirk Pranke 2012-06-13 12:46:21 PDT
Committed r120238: <http://trac.webkit.org/changeset/120238>