WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 85419
webkitpy: Remove direct sys.platform usage in run_webkit_tests_integrationtest.
https://bugs.webkit.org/show_bug.cgi?id=85419
Summary
webkitpy: Remove direct sys.platform usage in run_webkit_tests_integrationtest.
Raphael Kubo da Costa (:rakuco)
Reported
2012-05-02 14:06:07 PDT
webkitpy: Remove direct sys.platform usage in run_webkit_tests_integrationtest.
Attachments
Patch
(7.23 KB, patch)
2012-05-02 14:09 PDT
,
Raphael Kubo da Costa (:rakuco)
dpranke
: review+
Details
Formatted Diff
Diff
Use a SystemHost instead of PlatformInfo
(2.46 KB, patch)
2012-05-02 14:35 PDT
,
Raphael Kubo da Costa (:rakuco)
dpranke
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Raphael Kubo da Costa (:rakuco)
Comment 1
2012-05-02 14:09:00 PDT
Created
attachment 139884
[details]
Patch
Dirk Pranke
Comment 2
2012-05-02 14:13:26 PDT
Comment on
attachment 139884
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=139884&action=review
> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:268 > + self.SHOULD_TEST_PROCESSES = not self._platform.is_win()
I probably wouldn't use upper case for this field, since it's not really a constant (it's not set at import-time like it was before).
Raphael Kubo da Costa (:rakuco)
Comment 3
2012-05-02 14:15:23 PDT
Committed
r115887
: <
http://trac.webkit.org/changeset/115887
>
Tony Chang
Comment 4
2012-05-02 14:15:37 PDT
Comment on
attachment 139884
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=139884&action=review
> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:264 > + self._platform = PlatformInfo(sys, platform, Executive())
Nit: If we make sys and platform have defaults values, we wouldn't have to import the modules everywhere that uses PlatformInfo.
> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:267 > + # FIXME: remove this when we fix test-webkitpy to work > + # properly on cygwin (
bug 63846
).
Nit: Capitalize Remove.
Dirk Pranke
Comment 5
2012-05-02 14:28:40 PDT
Comment on
attachment 139884
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=139884&action=review
>> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:264 >> + self._platform = PlatformInfo(sys, platform, Executive()) > > Nit: If we make sys and platform have defaults values, we wouldn't have to import the modules everywhere that uses PlatformInfo.
Good catch. Can you change this to a SystemHost() instead (since that has defaults) and then use self._platform = SystemHost().platform ? (and add a comment as to why this is a real platform and not a mock?
Raphael Kubo da Costa (:rakuco)
Comment 6
2012-05-02 14:35:40 PDT
Reopening to attach new patch.
Raphael Kubo da Costa (:rakuco)
Comment 7
2012-05-02 14:35:49 PDT
Created
attachment 139886
[details]
Use a SystemHost instead of PlatformInfo
Raphael Kubo da Costa (:rakuco)
Comment 8
2012-05-02 14:36:58 PDT
I've fixed the capitalization issues in <
http://trac.webkit.org/changeset/115888
>, and sent another patch to implement Tony and Dirk's suggestion of not using a PlatformInfo directly.
Raphael Kubo da Costa (:rakuco)
Comment 9
2012-05-02 14:54:54 PDT
Committed
r115894
: <
http://trac.webkit.org/changeset/115894
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug