Bug 57662 - new-run-webkit-tests: fix feature detection, skipped platform lists on mac
Summary: new-run-webkit-tests: fix feature detection, skipped platform lists on mac
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on:
Blocks: 56047
  Show dependency treegraph
 
Reported: 2011-04-01 14:23 PDT by Dirk Pranke
Modified: 2011-04-01 20:16 PDT (History)
3 users (show)

See Also:


Attachments
Patch (5.19 KB, patch)
2011-04-01 15:07 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
update w/ feedback from abarth (5.31 KB, patch)
2011-04-01 16:41 PDT, Dirk Pranke
abarth: review+
abarth: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2011-04-01 14:23:38 PDT
new-run-webkit-tests: fix feature detection, skipped platform lists on mac
Comment 1 Dirk Pranke 2011-04-01 15:07:19 PDT
Created attachment 87922 [details]
Patch
Comment 2 Adam Barth 2011-04-01 16:32:39 PDT
Comment on attachment 87922 [details]
Patch

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

> Tools/Scripts/webkitpy/layout_tests/port/mac.py:134
> +    def _path_to_webcore_library(self):
> +        return self._build_path('WebCore.framework/Versions/A/WebCore')

This method does not appear to be used in this patch.

> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:186
> +        entries = self._filesystem.glob(self._webkit_baseline_path('*'))

Doesn't this return a super huge list?  This doesn't seem like the right algorithm.  You want to enumerate the directories and then ask whether they're in the baseline search path, not enumerate all the things in those directories.

> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:187
> +        platform_prefix = self.name().split('-', 1)[0]

This should be a helpful function instead of munging the string here.
Comment 3 Dirk Pranke 2011-04-01 16:36:46 PDT
(In reply to comment #2)
> (From update of attachment 87922 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=87922&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/port/mac.py:134
> > +    def _path_to_webcore_library(self):
> > +        return self._build_path('WebCore.framework/Versions/A/WebCore')
> 
> This method does not appear to be used in this patch.
> 
> > Tools/Scripts/webkitpy/layout_tests/port/webkit.py:186
> > +        entries = self._filesystem.glob(self._webkit_baseline_path('*'))
> 
> Doesn't this return a super huge list?  This doesn't seem like the right algorithm.  You want to enumerate the directories and then ask whether they're in the baseline search path, not enumerate all the things in those directories.
> 

The glob() returns LayoutTests/platform/*, nor platform/*/*. It's a small list and the isdir call filters for the directories.

> > Tools/Scripts/webkitpy/layout_tests/port/webkit.py:187
> > +        platform_prefix = self.name().split('-', 1)[0]
> 
> This should be a helpful function instead of munging the string here.

Will add.
Comment 4 Dirk Pranke 2011-04-01 16:38:44 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > (From update of attachment 87922 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=87922&action=review
> > 
> > > Tools/Scripts/webkitpy/layout_tests/port/mac.py:134
> > > +    def _path_to_webcore_library(self):
> > > +        return self._build_path('WebCore.framework/Versions/A/WebCore')
> > 
> > This method does not appear to be used in this patch.
> > 
> > > Tools/Scripts/webkitpy/layout_tests/port/webkit.py:186
> > > +        entries = self._filesystem.glob(self._webkit_baseline_path('*'))
> > 
> > Doesn't this return a super huge list?  This doesn't seem like the right algorithm.  You want to enumerate the directories and then ask whether they're in the baseline search path, not enumerate all the things in those directories.
> > 
> 
> The glob() returns LayoutTests/platform/*, nor platform/*/*. It's a small list and the isdir call filters for the directories.
> 
> > > Tools/Scripts/webkitpy/layout_tests/port/webkit.py:187
> > > +        platform_prefix = self.name().split('-', 1)[0]
> > 
> > This should be a helpful function instead of munging the string here.
> 
> Will add.

Er, actually, this was left over from an earlier, incorrect patch and isn't even needed. Deleted.
Comment 5 Dirk Pranke 2011-04-01 16:41:06 PDT
Created attachment 87941 [details]
update w/ feedback from abarth
Comment 6 Adam Barth 2011-04-01 17:42:22 PDT
Comment on attachment 87941 [details]
update w/ feedback from abarth

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

> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:186
> +            basename = self._filesystem.basename(entry)

Shouldn't this be inside the if since the variable is only used inside the if?
Comment 7 Adam Barth 2011-04-01 17:45:59 PDT
Comment on attachment 87941 [details]
update w/ feedback from abarth

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

> Tools/Scripts/webkitpy/layout_tests/port/mac.py:134
> +    def _path_to_webcore_library(self):
> +        return self._build_path('WebCore.framework/Versions/A/WebCore')

I would have made this change in a separate patch, but i think it's fine to add it to this patch.
Comment 8 Dirk Pranke 2011-04-01 17:51:03 PDT
(In reply to comment #6)
> (From update of attachment 87941 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=87941&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/port/webkit.py:186
> > +            basename = self._filesystem.basename(entry)
> 
> Shouldn't this be inside the if since the variable is only used inside the if?

Sure, it can be. I will fix this when I land it. 

Thanks for the review.
Comment 9 Dirk Pranke 2011-04-01 17:55:32 PDT
Committed r82753: <http://trac.webkit.org/changeset/82753>
Comment 10 WebKit Review Bot 2011-04-01 20:16:38 PDT
http://trac.webkit.org/changeset/82759 might have broken SnowLeopard Intel Release (WebKit2 Tests)
The following tests are not passing:
inspector/styles/styles-add-blank-property.html
plugins/windowless_plugin_paint_test.html