<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>165249</bug_id>
          
          <creation_ts>2016-12-01 03:50:54 -0800</creation_ts>
          <short_desc>[Win] test-webkitpy is failing.</short_desc>
          <delta_ts>2016-12-02 19:29:07 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=164568</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1255202</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-12-01 03:50:54 -0800</bug_when>
    <thetext>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 &quot;/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py&quot;, line 101, in test_rebaseline_updates_expectations_file_noop
      self._zero_out_test_expectations()
    File &quot;/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py&quot;, line 70, in _zero_out_test_expectations
      port = self.tool.port_factory.get(port_name)
    File &quot;/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/port/factory.py&quot;, line 126, in get
      return cls(self._host, port_name, options=options, **kwargs)
    File &quot;/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/port/ios.py&quot;, line 106, in __init__
      self._current_device = Simulator().current_device()
    File &quot;/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/xcode/simulator.py&quot;, line 303, in __init__
      self.refresh()
    File &quot;/cygdrive/c/Projects/WebKit2/OpenSource/Tools/Scripts/webkitpy/xcode/simulator.py&quot;, line 403, in refresh
      device_types_header = next(lines)
  TypeError: tuple object is not an iterator</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255205</commentid>
    <comment_count>1</comment_count>
      <attachid>295833</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-12-01 03:57:21 -0800</bug_when>
    <thetext>Created attachment 295833
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255258</commentid>
    <comment_count>2</comment_count>
      <attachid>295833</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-12-01 08:28:40 -0800</bug_when>
    <thetext>Comment on attachment 295833
Patch

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

&gt; Tools/Scripts/webkitpy/xcode/simulator.py:404
&gt; +            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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255660</commentid>
    <comment_count>3</comment_count>
      <attachid>295941</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-12-02 04:45:54 -0800</bug_when>
    <thetext>Created attachment 295941
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255661</commentid>
    <comment_count>4</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-12-02 04:47:40 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 295833 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=295833&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/webkitpy/xcode/simulator.py:404
&gt; &gt; +            return
&gt; 
&gt; I think we want another assert in here to test that we are not on a mac. 
&gt; Otherwise we could end up suppressing a legitimate error on Macs.  Perhaps
&gt; self._host.platform.is_mac() would do the job?

Thanks for reviewing :) Updated patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255718</commentid>
    <comment_count>5</comment_count>
      <attachid>295941</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-02 09:29:50 -0800</bug_when>
    <thetext>Comment on attachment 295941
Patch

what about linux?  Why are we even running this Xcode-specific code on Windows?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255766</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-12-02 10:55:17 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Comment on attachment 295941 [details]
&gt; Patch
&gt; 
&gt; what about linux?  Why are we even running this Xcode-specific code on
&gt; Windows?

I&apos;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&apos;t really be platform agnostic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255929</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-12-02 15:15:59 -0800</bug_when>
    <thetext>I think &lt;http://trac.webkit.org/changeset/209266&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255961</commentid>
    <comment_count>8</comment_count>
      <attachid>295941</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2016-12-02 16:32:40 -0800</bug_when>
    <thetext>Comment on attachment 295941
Patch

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

I like the approach of this patch. We already rolled out &lt;https://trac.webkit.org/changeset/209136&gt; in &lt;https://trac.webkit.org/changeset/209266&gt;.

&gt; Tools/Scripts/webkitpy/xcode/simulator.py:404
&gt; +            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 &lt;http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/system/platforminfo.py?rev=209145#L132&gt; to return an empty generator for a non-Mac port. That being said, this should never happen in practice).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>295833</attachid>
            <date>2016-12-01 03:57:21 -0800</date>
            <delta_ts>2016-12-02 04:45:49 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-165249-20161201035706.patch</filename>
            <type>text/plain</type>
            <size>1308</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIwOTE4MCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpA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gICAiIiIKICAgICAgICAgbGluZXMgPSBzZWxmLl9ob3N0LnBs
YXRmb3JtLnhjb2RlX3NpbWN0bF9saXN0KCkKKyAgICAgICAgaWYgbm90IGxpbmVzOgorICAgICAg
ICAgICAgcmV0dXJuCiAgICAgICAgIGRldmljZV90eXBlc19oZWFkZXIgPSBuZXh0KGxpbmVzKQog
ICAgICAgICBpZiBkZXZpY2VfdHlwZXNfaGVhZGVyICE9ICc9PSBEZXZpY2UgVHlwZXMgPT0nOgog
ICAgICAgICAgICAgcmFpc2UgUnVudGltZUVycm9yKCdFeHBlY3RlZCA9PSBEZXZpY2UgVHlwZXMg
PT0gaGVhZGVyIGJ1dCBnb3Q6ICJ7fSInLmZvcm1hdChkZXZpY2VfdHlwZXNfaGVhZGVyKSkK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>295941</attachid>
            <date>2016-12-02 04:45:54 -0800</date>
            <delta_ts>2016-12-02 16:32:40 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-165249-20161202044538.patch</filename>
            <type>text/plain</type>
            <size>1361</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIwOTE4MCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE1IEBACisyMDE2LTEyLTAxICBQZXIgQXJuZSBWb2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNv
bT4KKworICAgICAgICBbV2luXSB0ZXN0LXdlYmtpdHB5IGlzIGZhaWxpbmcuCisgICAgICAgIGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNjUyNDkKK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aWNlX3R5cGVzX2hlYWRlciA9IG5leHQobGluZXMpCiAgICAg
ICAgIGlmIGRldmljZV90eXBlc19oZWFkZXIgIT0gJz09IERldmljZSBUeXBlcyA9PSc6CiAgICAg
ICAgICAgICByYWlzZSBSdW50aW1lRXJyb3IoJ0V4cGVjdGVkID09IERldmljZSBUeXBlcyA9PSBo
ZWFkZXIgYnV0IGdvdDogInt9IicuZm9ybWF0KGRldmljZV90eXBlc19oZWFkZXIpKQo=
</data>
<flag name="review"
          id="318467"
          type_id="1"
          status="-"
          setter="dbates"
    />
          </attachment>
      

    </bug>

</bugzilla>