WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
165249
[Win] test-webkitpy is failing.
https://bugs.webkit.org/show_bug.cgi?id=165249
Summary
[Win] test-webkitpy is failing.
Per Arne Vollan
Reported
2016-12-01 03:50:54 PST
When running test-webkitpy, I get an exception: [1444/1505] webkitpy.tool.commands.rebaseline_unittest.TestRebaselineTest.test_rebaseline_updates_expectations_file_noop erred: Traceback (most recent call last): File "/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py", line 101, in test_rebaseline_updates_expectations_file_noop self._zero_out_test_expectations() File "/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py", line 70, in _zero_out_test_expectations port = self.tool.port_factory.get(port_name) File "/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/port/factory.py", line 126, in get return cls(self._host, port_name, options=options, **kwargs) File "/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/port/ios.py", line 106, in __init__ self._current_device = Simulator().current_device() File "/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/xcode/simulator.py", line 303, in __init__ self.refresh() File "/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/xcode/simulator.py", line 403, in refresh device_types_header = next(lines) TypeError: tuple object is not an iterator
Attachments
Patch
(1.28 KB, patch)
2016-12-01 03:57 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(1.33 KB, patch)
2016-12-02 04:45 PST
,
Per Arne Vollan
dbates
: review-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Per Arne Vollan
Comment 1
2016-12-01 03:57:21 PST
Created
attachment 295833
[details]
Patch
Jonathan Bedard
Comment 2
2016-12-01 08:28:40 PST
Comment on
attachment 295833
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=295833&action=review
> Tools/Scripts/webkitpy/xcode/simulator.py:404 > + return
I think we want another assert in here to test that we are not on a mac. Otherwise we could end up suppressing a legitimate error on Macs. Perhaps self._host.platform.is_mac() would do the job?
Per Arne Vollan
Comment 3
2016-12-02 04:45:54 PST
Created
attachment 295941
[details]
Patch
Per Arne Vollan
Comment 4
2016-12-02 04:47:40 PST
(In reply to
comment #2
)
> Comment on
attachment 295833
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=295833&action=review
> > > Tools/Scripts/webkitpy/xcode/simulator.py:404 > > + return > > I think we want another assert in here to test that we are not on a mac. > Otherwise we could end up suppressing a legitimate error on Macs. Perhaps > self._host.platform.is_mac() would do the job?
Thanks for reviewing :) Updated patch.
Alex Christensen
Comment 5
2016-12-02 09:29:50 PST
Comment on
attachment 295941
[details]
Patch what about linux? Why are we even running this Xcode-specific code on Windows?
Jonathan Bedard
Comment 6
2016-12-02 10:55:17 PST
(In reply to
comment #5
)
> Comment on
attachment 295941
[details]
> Patch > > what about linux? Why are we even running this Xcode-specific code on > Windows?
I'm not aware of a method of disabling certain unit tests on different platforms in Python (since that is essentially what it going on here). This change may be better suited for the unit test itself. It should also be noted that this is a pretty unique circumstance. Most of the time when we run command line tools in webkitpy we mock them up when testing, meaning that testing platform specific code is platform agnostic. In this case, the test in question is intended to test the command, so the test can't really be platform agnostic.
Jonathan Bedard
Comment 7
2016-12-02 15:15:59 PST
I think <
http://trac.webkit.org/changeset/209266
> should have fixed this.
https://bugs.webkit.org/show_bug.cgi?id=164568
should be fixed shortly, the more verbose GTK log revealed a better fix to this problem.
Daniel Bates
Comment 8
2016-12-02 16:32:40 PST
Comment on
attachment 295941
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=295941&action=review
I like the approach of this patch. We already rolled out <
https://trac.webkit.org/changeset/209136
> in <
https://trac.webkit.org/changeset/209266
>.
> Tools/Scripts/webkitpy/xcode/simulator.py:404 > + assert not self._host.platform.is_mac()
This assert is not needed because on a real platform xcode_simctl_list() returns a generator. And an empty generator != None. (For correctness we should fix <
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/system/platforminfo.py?rev=209145#L132
> to return an empty generator for a non-Mac port. That being said, this should never happen in practice).
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