Bug 54652 - REGRESSION (r78522): webkitpy.layout_tests.port.chromium_win_unittest.ChromiumWinTest.test_setup_environ_for_server_register_cygwin failing on Apple's Windows port
Summary: REGRESSION (r78522): webkitpy.layout_tests.port.chromium_win_unittest.Chromiu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Dirk Pranke
URL: http://build.webkit.org/builders/Wind...
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2011-02-17 06:54 PST by Adam Roben (:aroben)
Modified: 2011-02-18 14:58 PST (History)
5 users (show)

See Also:


Attachments
Patch (3.47 KB, patch)
2011-02-17 19:40 PST, Dirk Pranke
no flags Details | Formatted Diff | Diff
Patch (3.75 KB, patch)
2011-02-17 20:21 PST, Dirk Pranke
no flags Details | Formatted Diff | Diff
Patch (1.65 KB, patch)
2011-02-18 14:51 PST, Dirk Pranke
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-02-17 06:54:02 PST
webkitpy.layout_tests.port.chromium_win_unittest.ChromiumWinTest.test_setup_environ_for_server_register_cygwin is failing on Apple's Windows port. See the URL for an example.
Comment 1 Adam Roben (:aroben) 2011-02-17 06:55:14 PST
Looks like this started failing in r78522. Here's the first test run where it failed: http://build.webkit.org/builders/Windows%20XP%20Debug%20%28Tests%29/builds/25257
Comment 2 Adam Roben (:aroben) 2011-02-17 06:57:50 PST
<rdar://problem/9016939>
Comment 3 Dirk Pranke 2011-02-17 12:32:28 PST
I have a patch for this somewhere. I'll try to get it landed this afternoon.
Comment 4 Dirk Pranke 2011-02-17 19:40:31 PST
Created attachment 82905 [details]
Patch
Comment 5 Dirk Pranke 2011-02-17 19:41:16 PST
Note that I'm kinda hijacking this bug. I believe the change in port_testcase fixes this issue, but the fixes to the baseline path are needed somewhere in here as well.
Comment 6 Adam Roben (:aroben) 2011-02-17 19:56:14 PST
Comment on attachment 82905 [details]
Patch

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

> Tools/Scripts/webkitpy/layout_tests/port/chromium_win.py:102
> +    def baseline_path(self):
> +        if self.version() == 'win7':
> +            return self._webkit_baseline_path('chromium-win')
> +        return self._webkit_baseline_path(self.name())

Why does win7 need a special case? Seems worth a comment.

> Tools/Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py:44
> +            self.results_directory = '/'

What effect does this have? Can you explain in the ChangeLog?
Comment 7 Dirk Pranke 2011-02-17 20:21:15 PST
Created attachment 82908 [details]
Patch
Comment 8 Dirk Pranke 2011-02-17 20:21:51 PST
Committed r78943: <http://trac.webkit.org/changeset/78943>
Comment 9 Dirk Pranke 2011-02-17 20:23:22 PST
(In reply to comment #6)
> (From update of attachment 82905 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=82905&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/port/chromium_win.py:102
> > +    def baseline_path(self):
> > +        if self.version() == 'win7':
> > +            return self._webkit_baseline_path('chromium-win')
> > +        return self._webkit_baseline_path(self.name())
> 
> Why does win7 need a special case? Seems worth a comment.
> 

Done (this is confusingly written in this version, but if version is win7, name is 'chromium-win-win7' and we don't want to use the version-specific directory, since win7 is the newest version.

This gets cleaned up in a later patch so I'm not going to sweat it here.

> > Tools/Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py:44
> > +            self.results_directory = '/'
> 
> What effect does this have? Can you explain in the ChangeLog?

Turns out this didn't need to be set, but the code in port_testcase that was using it was doing something unnecessary that triggered it. I fixed that code instead.
Comment 10 Ojan Vafai 2011-02-17 20:40:39 PST
Comment on attachment 82908 [details]
Patch

Clearing review flag since this has been committed.
Comment 12 Dirk Pranke 2011-02-18 14:20:07 PST
so it is ... maybe I only fixed it for win32, and not cygwin. Looking now ...
Comment 13 Dirk Pranke 2011-02-18 14:51:41 PST
Created attachment 83015 [details]
Patch
Comment 14 Dirk Pranke 2011-02-18 14:58:26 PST
Committed r79036: <http://trac.webkit.org/changeset/79036>