Changeset 57524 in webkit


Ignore:
Timestamp:
Apr 13, 2010 11:00:07 AM (14 years ago)
Author:
Adam Roben
Message:

Fix run-webkit-tests on Windows with spaces in the path

Fixes <http://webkit.org/b/37509>.

Reviewed by Steve Falkenburg.

  • Scripts/run-webkit-tests:

(convertPathUsingCygpath): Remove spaces from the path before passing
them to cygpath, then add them back in after conversion, as some
versions of cygpath seem to convert spaces into newlines.

Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57523 r57524  
     12010-04-13  Adam Roben  <aroben@apple.com>
     2
     3        Fix run-webkit-tests on Windows with spaces in the path
     4
     5        Fixes <http://webkit.org/b/37509>.
     6
     7        Reviewed by Steve Falkenburg.
     8
     9        * Scripts/run-webkit-tests:
     10        (convertPathUsingCygpath): Remove spaces from the path before passing
     11        them to cygpath, then add them back in after conversion, as some
     12        versions of cygpath seem to convert spaces into newlines.
     13
    1142010-04-13  Adam Barth  <abarth@webkit.org>
    215
  • trunk/WebKitTools/Scripts/run-webkit-tests

    r57523 r57524  
    16691669    my ($path, $options) = @_;
    16701670
     1671    # cygpath -f (at least in Cygwin 1.7) converts spaces into newlines. We remove spaces here and
     1672    # add them back in after conversion to work around this.
     1673    my $spaceSubstitute = "__NOTASPACE__";
     1674    $path =~ s/ /\Q$spaceSubstitute\E/g;
     1675
    16711676    my $cygpath = openCygpathIfNeeded($options);
    16721677    local *inFH = $cygpath->{"in"};
     
    16751680    my $convertedPath = <inFH>;
    16761681    chomp($convertedPath) if defined $convertedPath;
     1682
     1683    $convertedPath =~ s/\Q$spaceSubstitute\E/ /g;
    16771684    return $convertedPath;
    16781685}
Note: See TracChangeset for help on using the changeset viewer.