<?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>64468</bug_id>
          
          <creation_ts>2011-07-13 11:18:05 -0700</creation_ts>
          <short_desc>WIN: DumpRenderTree hangs under NRWT</short_desc>
          <delta_ts>2012-01-09 13:16:39 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>38756</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
    
    <cc>tony</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>436534</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-07-13 11:18:05 -0700</bug_when>
    <thetext>To reproduce:

1. new-run-webkit-tests

DRT launches and hangs.

The problem is that we&apos;re passing Cygwin-style paths to DRT. We need to pass Windows-style paths instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>436713</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-07-13 15:41:12 -0700</bug_when>
    <thetext>It appears that Chromium&apos;s DumpRenderTree implementation expects file:/// uris:
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py#L439

but all the WebKit ones seem to expect absolute file paths?
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py#L465

is that correct?

It should be easy to convert the paths, but we don&apos;t have very standard cygwin support in the codebase yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>436718</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-07-13 15:47:09 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; It appears that Chromium&apos;s DumpRenderTree implementation expects file:/// uris:
&gt; http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py#L439
&gt; 
&gt; but all the WebKit ones seem to expect absolute file paths?
&gt; http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py#L465
&gt; 
&gt; is that correct?
&gt; 

As far as I know, yes.

&gt; It should be easy to convert the paths, but we don&apos;t have very standard cygwin support in the codebase yet.

Do you need more than what we have in common.system.path ? There is also the port.uri_to_test_name() and port.abspath_for_test() routines that should allow you to get from any variant of URL to path to test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>436725</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-07-13 15:52:54 -0700</bug_when>
    <thetext>It looks like abspath_for_test should already do the right thing on windows:

    def abspath_for_test(self, test_name):
        &quot;&quot;&quot;Returns the full path to the file for a given test name. This is the
        inverse of relative_test_filename().&quot;&quot;&quot;
        return self._filesystem.normpath(self._filesystem.join(self.layout_tests_dir(), test_name))

I think the bug is that we&apos;re calling test_to_uri in WebKItDriver when we really want to just call abspath_for_test.

I&apos;ll upload a patch which might fix this, but again, someone with Windows will have to test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>436727</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-07-13 15:55:04 -0700</bug_when>
    <thetext>Hmm... I&apos;ll have to check to see what ORWT does for http tests on windows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437084</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-07-14 07:41:31 -0700</bug_when>
    <thetext>Note that abspath_for_test isn&apos;t sufficient on Windows because it will produce a Cygwin-style path.

The bare-minimum required change is here:

http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py?rev=90826#L465

Changing this:

command = uri[7:] if uri.startswith(&quot;file:///&quot;) else uri

to this:

command = cygpath(urllib.unquote(uri[7:])) if uri.startswith(&quot;file:///&quot;) else uri

This is a bit icky, of course, since we&apos;re converting to a URL then back to a path (but the code already does this). I think the urllib.unquote call is actually the right thing to do on all platforms if we keep this test name -&gt; URL -&gt; file path approach. Only the cygpath() call is Windows-specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437085</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-07-14 07:43:10 -0700</bug_when>
    <thetext>And of course my above change completely ignores using abstraction. :-) A new method like Port.prepare_path_for_driver could do the cygpath conversion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437266</commentid>
    <comment_count>7</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-07-14 12:51:02 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Note that abspath_for_test isn&apos;t sufficient on Windows because it will produce a Cygwin-style path.
&gt; 
&gt; The bare-minimum required change is here:
&gt; 
&gt; http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py?rev=90826#L465
&gt; 
&gt; Changing this:
&gt; 
&gt; command = uri[7:] if uri.startswith(&quot;file:///&quot;) else uri
&gt; 
&gt; to this:
&gt; 
&gt; command = cygpath(urllib.unquote(uri[7:])) if uri.startswith(&quot;file:///&quot;) else uri
&gt; 
&gt; This is a bit icky, of course, since we&apos;re converting to a URL then back to a path (but the code already does this). I think the urllib.unquote call is actually the right thing to do on all platforms if we keep this test name -&gt; URL -&gt; file path approach. Only the cygpath() call is Windows-specific.

There&apos;s no reason to go through the URL if you don&apos;t need to. You could just as easily change command_From_driver_input() to something like:

if driver_input.test_name.startswith(&apos;http/&apos;):
  command = self.test_to_uri(driver_input.test_name)
else:
  command = cygpath(self.abspath_for_test(driver_input.test_name)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437269</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-07-14 12:53:58 -0700</bug_when>
    <thetext>Agreed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530308</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-05 08:25:09 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; There&apos;s no reason to go through the URL if you don&apos;t need to. You could just as easily change command_From_driver_input() to something like:
&gt; 
&gt; if driver_input.test_name.startswith(&apos;http/&apos;):
&gt;   command = self.test_to_uri(driver_input.test_name)
&gt; else:
&gt;   command = cygpath(self.abspath_for_test(driver_input.test_name)

Unfortunately, test_to_uri contains some tricky logic about whether to use an http:/https: URL or a file: URL. I don&apos;t think we want to duplicate that logic in command_from_driver_input. Maybe we can share the logic, or maybe we can make the roundtrip through test_to_uri work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530317</commentid>
    <comment_count>10</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-05 08:39:43 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Note that abspath_for_test isn&apos;t sufficient on Windows because it will produce a Cygwin-style path.
&gt; 
&gt; The bare-minimum required change is here:
&gt; 
&gt; http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py?rev=90826#L465
&gt; 
&gt; Changing this:
&gt; 
&gt; command = uri[7:] if uri.startswith(&quot;file:///&quot;) else uri
&gt; 
&gt; to this:
&gt; 
&gt; command = cygpath(urllib.unquote(uri[7:])) if uri.startswith(&quot;file:///&quot;) else uri
&gt; 
&gt; This is a bit icky, of course, since we&apos;re converting to a URL then back to a path (but the code already does this). I think the urllib.unquote call is actually the right thing to do on all platforms if we keep this test name -&gt; URL -&gt; file path approach. Only the cygpath() call is Windows-specific.

It seems that uri now contains a Windows-style file: URL, not a Cygwin-style file: URL. Not sure when that changed. Anyway, now the minimum change is:

command = urllib.unquote(uri[8:]).replace(&apos;/&apos;, &apos;\\&apos;) if uri.startswith(&quot;file:///&quot;) else uri

Gotta come up with some better solution that doesn&apos;t break Mac etc. of course :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530501</commentid>
    <comment_count>11</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 11:58:09 -0800</bug_when>
    <thetext>Test names as passed to run_test() are expected to be relative-path filenames. We could centralize and standardize testing whether the test is an http test in a separate method on Port() if we wanted, but the change I suggested in comment #7 is correct for the cygwin platform. It would probably be good to change cygpath to be a no-op on non-cygpath platform just to be portable, or you could change the implementation to get an abspath and then only call cygpath if needed.

I would not go through the uri transformation; it&apos;s unnecessary and confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530503</commentid>
    <comment_count>12</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 11:59:13 -0800</bug_when>
    <thetext>that is, assuming webkit-based DRTs expects filenames and not URIs :).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530512</commentid>
    <comment_count>13</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-05 12:05:19 -0800</bug_when>
    <thetext>(In reply to comment #11)
&gt; Test names as passed to run_test() are expected to be relative-path filenames. We could centralize and standardize testing whether the test is an http test in a separate method on Port() if we wanted, but the change I suggested in comment #7 is correct for the cygwin platform. It would probably be good to change cygpath to be a no-op on non-cygpath platform just to be portable, or you could change the implementation to get an abspath and then only call cygpath if needed.
&gt; 
&gt; I would not go through the uri transformation; it&apos;s unnecessary and confusing.

Your proposed change in comment 7 isn&apos;t quite right: tests in http/tests/local are supposed to be loaded as local files, not as http: URLs. At least according to Port.test_to_uri.

It seems best to me to keep cygpath as-is. Having it be a no-op for most developers will most likely mean that it won&apos;t be used correctly.

I&apos;m trying to come up with a good name for the concept of &quot;path to test that the driver will understand&quot; as opposed to &quot;path to test that Python will understand&quot;. If we had such a name, we could have a Port.test_to_&lt;name&gt; function that would generate the right type of path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530520</commentid>
    <comment_count>14</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 12:13:00 -0800</bug_when>
    <thetext>(In reply to comment #13)
&gt; Your proposed change in comment 7 isn&apos;t quite right: tests in http/tests/local are supposed to be loaded as local files, not as http: URLs. At least according to Port.test_to_uri.
&gt;

Oh. Hm. You&apos;re right. That&apos;s bad, as it means the logic in controllers/manager.py is broken, and we should probably create an is_http_test() to actually codify/fix this.
 
&gt; It seems best to me to keep cygpath as-is. Having it be a no-op for most developers will most likely mean that it won&apos;t be used correctly.
&gt;

Sounds good.
 
&gt; I&apos;m trying to come up with a good name for the concept of &quot;path to test that the driver will understand&quot; as opposed to &quot;path to test that Python will understand&quot;. If we had such a name, we could have a Port.test_to_&lt;name&gt; function that would generate the right type of path.

&quot;path to test that the driver will understand&quot; is probably only actually used under Driver.run_test(), so I&apos;m not sure if there&apos;s value in creating a separate routine for it (at least, not on the Port object, we could put on on the driver object if necessary).

By that same logic, test_to_uri() is only used by the chromium Driver (and various pieces of test code), and should probably be moved out of the Port object and down into the chromium Driver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530521</commentid>
    <comment_count>15</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 12:13:26 -0800</bug_when>
    <thetext>As an aside, it seems goofy that we have tests that aren&apos;t http tests under the http directory, but that long predates me so I have no idea why ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530531</commentid>
    <comment_count>16</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-05 12:20:05 -0800</bug_when>
    <thetext>(In reply to comment #15)
&gt; As an aside, it seems goofy that we have tests that aren&apos;t http tests under the http directory, but that long predates me so I have no idea why ...

http://trac.webkit.org/changeset/19553</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530532</commentid>
    <comment_count>17</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 12:22:21 -0800</bug_when>
    <thetext>(In reply to comment #16)
&gt; (In reply to comment #15)
&gt; &gt; As an aside, it seems goofy that we have tests that aren&apos;t http tests under the http directory, but that long predates me so I have no idea why ...
&gt; 
&gt; http://trac.webkit.org/changeset/19553

Ah. What an annoying special case to have to cover :).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530533</commentid>
    <comment_count>18</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-05 12:24:02 -0800</bug_when>
    <thetext>(In reply to comment #14)
&gt; (In reply to comment #13)
&gt; &gt; Your proposed change in comment 7 isn&apos;t quite right: tests in http/tests/local are supposed to be loaded as local files, not as http: URLs. At least according to Port.test_to_uri.
&gt; &gt;
&gt; 
&gt; Oh. Hm. You&apos;re right. That&apos;s bad, as it means the logic in controllers/manager.py is broken, and we should probably create an is_http_test() to actually codify/fix this.

Sounds good to me! I think http/tests/websocket/tests/local is supposed to be run locally too.

&gt; &gt; I&apos;m trying to come up with a good name for the concept of &quot;path to test that the driver will understand&quot; as opposed to &quot;path to test that Python will understand&quot;. If we had such a name, we could have a Port.test_to_&lt;name&gt; function that would generate the right type of path.
&gt; 
&gt; &quot;path to test that the driver will understand&quot; is probably only actually used under Driver.run_test(), so I&apos;m not sure if there&apos;s value in creating a separate routine for it (at least, not on the Port object, we could put on on the driver object if necessary).

Does Driver know whether it&apos;s running under Cygwin or not? I didn&apos;t think it did.

&gt; By that same logic, test_to_uri() is only used by the chromium Driver (and various pieces of test code), and should probably be moved out of the Port object and down into the chromium Driver.

It&apos;s also used by WebKitPort._command_from_driver_input, of course!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530534</commentid>
    <comment_count>19</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-05 12:24:29 -0800</bug_when>
    <thetext>(In reply to comment #17)
&gt; (In reply to comment #16)
&gt; &gt; (In reply to comment #15)
&gt; &gt; &gt; As an aside, it seems goofy that we have tests that aren&apos;t http tests under the http directory, but that long predates me so I have no idea why ...
&gt; &gt; 
&gt; &gt; http://trac.webkit.org/changeset/19553
&gt; 
&gt; Ah. What an annoying special case to have to cover :).

We could probably change things such that Apache is always running whenever any test is run. Then these tests could be moved out of the http/ directory entirely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530542</commentid>
    <comment_count>20</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-05 12:29:35 -0800</bug_when>
    <thetext>(In reply to comment #19)
&gt; (In reply to comment #17)
&gt; &gt; (In reply to comment #16)
&gt; &gt; &gt; (In reply to comment #15)
&gt; &gt; &gt; &gt; As an aside, it seems goofy that we have tests that aren&apos;t http tests under the http directory, but that long predates me so I have no idea why ...
&gt; &gt; &gt; 
&gt; &gt; &gt; http://trac.webkit.org/changeset/19553
&gt; &gt; 
&gt; &gt; Ah. What an annoying special case to have to cover :).
&gt; 
&gt; We could probably change things such that Apache is always running whenever any test is run. Then these tests could be moved out of the http/ directory entirely.

The Qt folks run more than one instance of RWT/NRWT per server.  So they are excited about having httpd run for as short a period of time as possible.  I&apos;m not sure we really want to support that usecase (at least not in that way).  A better alternative would be to fix all DRT instances to remap port 8080 requests to whatever port the DRT was told to remap to on startup, but that&apos;s more involved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530544</commentid>
    <comment_count>21</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 12:34:01 -0800</bug_when>
    <thetext>(In reply to comment #18)
&gt; (In reply to comment #14)
&gt; &gt; (In reply to comment #13)
&gt; &gt; &gt; Your proposed change in comment 7 isn&apos;t quite right: tests in http/tests/local are supposed to be loaded as local files, not as http: URLs. At least according to Port.test_to_uri.
&gt; &gt; &gt;
&gt; &gt; 
&gt; &gt; Oh. Hm. You&apos;re right. That&apos;s bad, as it means the logic in controllers/manager.py is broken, and we should probably create an is_http_test() to actually codify/fix this.
&gt; 
&gt; Sounds good to me! I think http/tests/websocket/tests/local is supposed to be run locally too.
&gt;

Actually, now that I think about it further, the manager logic is correct; it needs to know whether a server is needed, not whether the test itself is local or http.

&gt; Does Driver know whether it&apos;s running under Cygwin or not? I didn&apos;t think it did.
&gt;

It certainly could know if it needed it ...
 
&gt; &gt; By that same logic, test_to_uri() is only used by the chromium Driver (and various pieces of test code), and should probably be moved out of the Port object and down into the chromium Driver.
&gt; 
&gt; It&apos;s also used by WebKitPort._command_from_driver_input, of course!

right :) Even so, this should probably be on the Driver class and not the port class if nothing outside of Drivers need it.

(In reply to comment #19)
&gt; We could probably change things such that Apache is always running whenever any test is run. Then these tests could be moved out of the http/ directory entirely.

In addition to Eric&apos;s comment, it also makes NRWT&apos;s startup significantly slower in the common case of just running a subset of non-http tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530564</commentid>
    <comment_count>22</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-05 12:58:11 -0800</bug_when>
    <thetext>(In reply to comment #21)
&gt; (In reply to comment #18)
&gt; &gt; (In reply to comment #14)
&gt; &gt; Does Driver know whether it&apos;s running under Cygwin or not? I didn&apos;t think it did.
&gt; &gt;
&gt; 
&gt; It certainly could know if it needed it ...
&gt; 
&gt; &gt; &gt; By that same logic, test_to_uri() is only used by the chromium Driver (and various pieces of test code), and should probably be moved out of the Port object and down into the chromium Driver.
&gt; &gt; 
&gt; &gt; It&apos;s also used by WebKitPort._command_from_driver_input, of course!
&gt; 
&gt; right :) Even so, this should probably be on the Driver class and not the port class if nothing outside of Drivers need it.

I don&apos;t think I understand your proposal well enough to implement it myself. Any chance you&apos;d be willing to take a stab at it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530587</commentid>
    <comment_count>23</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 13:24:49 -0800</bug_when>
    <thetext>(In reply to comment #22)
&gt; (In reply to comment #21)
&gt; &gt; (In reply to comment #18)
&gt; &gt; &gt; (In reply to comment #14)
&gt; &gt; &gt; Does Driver know whether it&apos;s running under Cygwin or not? I didn&apos;t think it did.
&gt; &gt; &gt;
&gt; &gt; 
&gt; &gt; It certainly could know if it needed it ...
&gt; &gt; 
&gt; &gt; &gt; &gt; By that same logic, test_to_uri() is only used by the chromium Driver (and various pieces of test code), and should probably be moved out of the Port object and down into the chromium Driver.
&gt; &gt; &gt; 
&gt; &gt; &gt; It&apos;s also used by WebKitPort._command_from_driver_input, of course!
&gt; &gt; 
&gt; &gt; right :) Even so, this should probably be on the Driver class and not the port class if nothing outside of Drivers need it.
&gt; 
&gt; I don&apos;t think I understand your proposal well enough to implement it myself. Any chance you&apos;d be willing to take a stab at it?

Sure, I can probably post something in a bit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530624</commentid>
    <comment_count>24</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-05 14:17:20 -0800</bug_when>
    <thetext>check out https://bugs.webkit.org/show_bug.cgi?id=75648 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531058</commentid>
    <comment_count>25</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-06 06:35:36 -0800</bug_when>
    <thetext>(In reply to comment #24)
&gt; check out https://bugs.webkit.org/show_bug.cgi?id=75648 .

Thanks!

(In reply to comment #21)
&gt; (In reply to comment #18)
&gt; &gt; Does Driver know whether it&apos;s running under Cygwin or not? I didn&apos;t think it did.
&gt; &gt;
&gt; 
&gt; It certainly could know if it needed it ...

Any preference for how this should be done?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531139</commentid>
    <comment_count>26</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-06 10:13:49 -0800</bug_when>
    <thetext>(In reply to comment #25)
&gt; (In reply to comment #24)
&gt; &gt; check out https://bugs.webkit.org/show_bug.cgi?id=75648 .
&gt; 
&gt; Thanks!
&gt; 
&gt; (In reply to comment #21)
&gt; &gt; (In reply to comment #18)
&gt; &gt; &gt; Does Driver know whether it&apos;s running under Cygwin or not? I didn&apos;t think it did.
&gt; &gt; &gt;
&gt; &gt; 
&gt; &gt; It certainly could know if it needed it ...
&gt; 
&gt; Any preference for how this should be done?

I typically just check for sys.platform == &apos;cygwin&apos; where I need to. There&apos;s no need for this code to be particularly platform independent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532291</commentid>
    <comment_count>27</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-01-09 10:33:44 -0800</bug_when>
    <thetext>&lt;rdar://problem/10663409&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532297</commentid>
    <comment_count>28</comment_count>
      <attachid>121683</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-09 10:36:05 -0800</bug_when>
    <thetext>Created attachment 121683
Convert Cygwin paths to Windows paths before passing them to DRT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532416</commentid>
    <comment_count>29</comment_count>
      <attachid>121683</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-09 12:20:22 -0800</bug_when>
    <thetext>Comment on attachment 121683
Convert Cygwin paths to Windows paths before passing them to DRT

I think you probably could have imported webkitpy.common.system.path in webkit_unittest and then overridden cygpath to point to a mocked-out function, but I think this is okay, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532418</commentid>
    <comment_count>30</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-09 12:20:51 -0800</bug_when>
    <thetext>(since it&apos;ll be tested heavily by nrwt.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532422</commentid>
    <comment_count>31</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2012-01-09 12:24:59 -0800</bug_when>
    <thetext>(In reply to comment #29)
&gt; (From update of attachment 121683 [details])
&gt; I think you probably could have imported webkitpy.common.system.path in webkit_unittest and then overridden cygpath to point to a mocked-out function, but I think this is okay, too.

I tried that but it didn&apos;t seem to work. The real cygpath was being called, not my mocked-out version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532424</commentid>
    <comment_count>32</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-01-09 12:27:20 -0800</bug_when>
    <thetext>(In reply to comment #31)
&gt; (In reply to comment #29)
&gt; &gt; (From update of attachment 121683 [details] [details])
&gt; &gt; I think you probably could have imported webkitpy.common.system.path in webkit_unittest and then overridden cygpath to point to a mocked-out function, but I think this is okay, too.
&gt; 
&gt; I tried that but it didn&apos;t seem to work. The real cygpath was being called, not my mocked-out version.

Hm. I&apos;ll have to dig into that at some point to figure out what was going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532466</commentid>
    <comment_count>33</comment_count>
      <attachid>121683</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-09 13:16:33 -0800</bug_when>
    <thetext>Comment on attachment 121683
Convert Cygwin paths to Windows paths before passing them to DRT

Clearing flags on attachment: 121683

Committed r104483: &lt;http://trac.webkit.org/changeset/104483&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532467</commentid>
    <comment_count>34</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-09 13:16:39 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>121683</attachid>
            <date>2012-01-09 10:36:05 -0800</date>
            <delta_ts>2012-01-09 13:16:33 -0800</delta_ts>
            <desc>Convert Cygwin paths to Windows paths before passing them to DRT</desc>
            <filename>bug-64468-20120109103604.patch</filename>
            <type>text/plain</type>
            <size>2078</size>
            <attacher name="Adam Roben (:aroben)">aroben</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA0NDYyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggZmVhNzNjOWJkOWUzOGQwNjRmNzM3NmM2NGM2MTk5ZGZi
NzcwOTAyMS4uYjRjMTkxNGY0MTQwNzJlN2Y2NjExYTljMGU2OGJkMmMzM2I5Y2RjNyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5
IEBACisyMDEyLTAxLTA5ICBBZGFtIFJvYmVuICA8YXJvYmVuQGFwcGxlLmNvbT4KKworICAgICAg
ICBDb252ZXJ0IEN5Z3dpbiBwYXRocyB0byBXaW5kb3dzIHBhdGhzIGJlZm9yZSBwYXNzaW5nIHRo
ZW0gdG8gRFJUCisKKyAgICAgICAgRml4ZXMgPGh0dHA6Ly93ZWJraXQub3JnL2IvNjQ0Njg+IDxy
ZGFyOi8vcHJvYmxlbS8xMDY2MzQwOT4gV0lOOiBEdW1wUmVuZGVyVHJlZSBoYW5ncyB1bmRlcgor
ICAgICAgICBOUldUCisKKyAgICAgICAgSSBjb3VsZG4ndCBmaW5kIGEgd2F5IHRvIHRlc3QgdGhp
cyBiZWNhdXNlIEkgY291bGRuJ3QgZmlndXJlIG91dCBob3cgdG8gb3ZlcnJpZGUgdGhlCisgICAg
ICAgIGN5Z3BhdGggZnVuY3Rpb24gYXMgaXQgaXMgdXNlZCBieSBXZWJLaXREcml2ZXIuCisKKyAg
ICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBTY3JpcHRzL3dl
YmtpdHB5L2xheW91dF90ZXN0cy9wb3J0L3dlYmtpdC5weToKKyAgICAgICAgKFdlYktpdERyaXZl
ci5fY29tbWFuZF9mcm9tX2RyaXZlcl9pbnB1dCk6IE9uIEN5Z3dpbiwgY29udmVydCB0aGUgdGVz
dCdzIHBhdGggdG8gYQorICAgICAgICBXaW5kb3dzLXN0eWxlIHBhdGggYmVmb3JlIHBhc3Npbmcg
aXQgdG8gRFJULgorCiAyMDEyLTAxLTA5ICBHYWJvciBSYXBjc2FueWkgIDxyZ2Fib3JAd2Via2l0
Lm9yZz4KIAogICAgICAgICBbR3RrXVtBUk1dIENyb3NzIGNvbXBpbGVyIGJ1aWxkYm90IGlzIGZh
aWxpbmcgYWZ0ZXIgcjEwMzA0MApkaWZmIC0tZ2l0IGEvVG9vbHMvU2NyaXB0cy93ZWJraXRweS9s
YXlvdXRfdGVzdHMvcG9ydC93ZWJraXQucHkgYi9Ub29scy9TY3JpcHRzL3dlYmtpdHB5L2xheW91
dF90ZXN0cy9wb3J0L3dlYmtpdC5weQppbmRleCBlYWFiOWFlZjZjYTMxYTNlOWE3ZGJhMTE2NzA4
NmU2OWFiMjQ2N2E0Li5jZGQ2YWYyZDZiNjY2MDg5MzdhOWU0OGQ5Yjk1OWIxNmU2YzMzNWFiIDEw
MDY0NAotLS0gYS9Ub29scy9TY3JpcHRzL3dlYmtpdHB5L2xheW91dF90ZXN0cy9wb3J0L3dlYmtp
dC5weQorKysgYi9Ub29scy9TY3JpcHRzL3dlYmtpdHB5L2xheW91dF90ZXN0cy9wb3J0L3dlYmtp
dC5weQpAQCAtNDMsNiArNDMsNyBAQCBmcm9tIHdlYmtpdHB5LmNvbW1vbi5tZW1vaXplZCBpbXBv
cnQgbWVtb2l6ZWQKIGZyb20gd2Via2l0cHkuY29tbW9uLm5ldC5idWlsZGJvdCBpbXBvcnQgQnVp
bGRCb3QKIGZyb20gd2Via2l0cHkuY29tbW9uLnN5c3RlbS5lbnZpcm9ubWVudCBpbXBvcnQgRW52
aXJvbm1lbnQKIGZyb20gd2Via2l0cHkuY29tbW9uLnN5c3RlbS5leGVjdXRpdmUgaW1wb3J0IEV4
ZWN1dGl2ZSwgU2NyaXB0RXJyb3IKK2Zyb20gd2Via2l0cHkuY29tbW9uLnN5c3RlbS5wYXRoIGlt
cG9ydCBjeWdwYXRoCiBmcm9tIHdlYmtpdHB5LmxheW91dF90ZXN0cy5wb3J0IGltcG9ydCBidWls
ZGVycywgc2VydmVyX3Byb2Nlc3MsIFBvcnQsIERyaXZlciwgRHJpdmVyT3V0cHV0CiAKIApAQCAt
NTI1LDYgKzUyNiw4IEBAIGNsYXNzIFdlYktpdERyaXZlcihEcml2ZXIpOgogICAgICAgICAgICAg
Y29tbWFuZCA9IHNlbGYudGVzdF90b191cmkoZHJpdmVyX2lucHV0LnRlc3RfbmFtZSkKICAgICAg
ICAgZWxzZToKICAgICAgICAgICAgIGNvbW1hbmQgPSBzZWxmLl9wb3J0LmFic3BhdGhfZm9yX3Rl
c3QoZHJpdmVyX2lucHV0LnRlc3RfbmFtZSkKKyAgICAgICAgICAgIGlmIHN5cy5wbGF0Zm9ybSA9
PSAnY3lnd2luJzoKKyAgICAgICAgICAgICAgICBjb21tYW5kID0gY3lncGF0aChjb21tYW5kKQog
CiAgICAgICAgIGlmIGRyaXZlcl9pbnB1dC5pbWFnZV9oYXNoOgogICAgICAgICAgICAgIyBGSVhN
RTogV2h5IHRoZSBsZWFkaW5nIHF1b3RlPwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>