Bug 82250 - Allow expectations on directories in virtual test suites
Summary: Allow expectations on directories in virtual test suites
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: Adrienne Walker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 15:51 PDT by Adrienne Walker
Modified: 2012-03-26 16:54 PDT (History)
5 users (show)

See Also:


Attachments
Patch (2.83 KB, patch)
2012-03-26 15:56 PDT, Adrienne Walker
dpranke: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrienne Walker 2012-03-26 15:51:20 PDT
Allow expectations on directories in virtual test suites
Comment 1 Adrienne Walker 2012-03-26 15:56:53 PDT
Created attachment 133915 [details]
Patch
Comment 2 Dirk Pranke 2012-03-26 16:28:29 PDT
Comment on attachment 133915 [details]
Patch

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

> Tools/Scripts/webkitpy/layout_tests/port/base.py:1099
> +                return test_name.replace(suite.name, suite.base)

Your change will allow lookup_virtual_test_base() to handle paths that don't actually map onto base paths that exist. I had to convince myself that that was okay, but I think I did. 

Given that, I don't think you even need to do the get() on line 1096. You can just replace line 1096 with your 1099.
Comment 3 Adrienne Walker 2012-03-26 16:49:56 PDT
(In reply to comment #2)
> (From update of attachment 133915 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=133915&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/port/base.py:1099
> > +                return test_name.replace(suite.name, suite.base)
> 
> Your change will allow lookup_virtual_test_base() to handle paths that don't actually map onto base paths that exist. I had to convince myself that that was okay, but I think I did. 

Yeah.  It looks like the calling code checks that the base path exists after doing the mapping, so I convinced myself that it seemed reasonable too.

> Given that, I don't think you even need to do the get() on line 1096. You can just replace line 1096 with your 1099.

Will do that on landing, thanks.
Comment 4 Adrienne Walker 2012-03-26 16:54:13 PDT
Committed r112176: <http://trac.webkit.org/changeset/112176>