Changeset 204123 in webkit


Ignore:
Timestamp:
Aug 4, 2016, 10:02:42 AM (9 years ago)
Author:
pvollan@apple.com
Message:

[Win] Unable to reliably run tests in parallel
https://bugs.webkit.org/show_bug.cgi?id=140914

Reviewed by Brent Fulgham.

The cygpath utility function can fail badly when running with multiple DumpRenderTree
processes. We can use string replacement to convert the Cygwin path to a Windows path
instead.

  • Scripts/webkitpy/common/system/path.py:

(cygpathFast):

  • Scripts/webkitpy/port/driver.py:

(Driver._command_from_driver_input):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r204105 r204123  
     12016-08-04  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [Win] Unable to reliably run tests in parallel
     4        https://bugs.webkit.org/show_bug.cgi?id=140914
     5
     6        Reviewed by Brent Fulgham.
     7
     8        The cygpath utility function can fail badly when running with multiple DumpRenderTree
     9        processes. We can use string replacement to convert the Cygwin path to a Windows path
     10        instead.
     11 
     12        * Scripts/webkitpy/common/system/path.py:
     13        (cygpathFast):
     14        * Scripts/webkitpy/port/driver.py:
     15        (Driver._command_from_driver_input):
     16
    1172016-08-03  Aakash Jain  <aakash_jain@apple.com>
    218
  • trunk/Tools/Scripts/webkitpy/common/system/path.py

    r202362 r204123  
    3131import atexit
    3232import os
     33import re
    3334import subprocess
    3435import sys
     
    5152    return path
    5253
     54
     55def cygpathFast(path):
     56    """Converts an absolute cygwin path to an absolute Windows path with string replacement."""
     57    if sys.platform == 'cygwin':
     58        path = re.sub('/cygdrive/c', 'c:', path)
     59        path = re.sub('/', r'\\', path)
     60    return path
    5361
    5462# Note that this object is not threadsafe and must only be called
  • trunk/Tools/Scripts/webkitpy/port/driver.py

    r202743 r204123  
    457457            command = self._port.abspath_for_test(driver_input.test_name)
    458458            if sys.platform == 'cygwin':
    459                 command = path.cygpath(command)
     459                command = path.cygpathFast(command)
    460460
    461461        assert not driver_input.image_hash or driver_input.should_run_pixel_test
Note: See TracChangeset for help on using the changeset viewer.