Changeset 77720 in webkit


Ignore:
Timestamp:
Feb 4, 2011 6:39:01 PM (13 years ago)
Author:
tony@chromium.org
Message:

2011-02-04 Tony Chang <tony@chromium.org>

Reviewed by Eric Seidel.

get test-webkitpy running on win32 python
https://bugs.webkit.org/show_bug.cgi?id=53822

The test harness crashes with a WindowsError because it can't find
'svn' when using subprocess.Popen. This gets us past the error
so we can see the failing tests on the Chromium Win Release Tests
bot.

  • Scripts/webkitpy/common/system/executive.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r77710 r77720  
     12011-02-04  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        get test-webkitpy running on win32 python
     6        https://bugs.webkit.org/show_bug.cgi?id=53822
     7
     8        The test harness crashes with a WindowsError because it can't find
     9        'svn' when using subprocess.Popen.  This gets us past the error
     10        so we can see the failing tests on the Chromium Win Release Tests
     11        bot.
     12
     13        * Scripts/webkitpy/common/system/executive.py:
     14
    1152011-02-04  Martin Robinson  <mrobinson@igalia.com>
    216
  • trunk/Tools/Scripts/webkitpy/common/system/executive.py

    r75586 r77720  
    112112        return sys.platform not in ('win32', 'cygwin')
    113113
     114    def _should_use_shell(self):
     115        # On Windows, if we don't use the shell, we don't search %PATH% to
     116        # find the command-- an absolute path is required.
     117        return sys.platform.startswith('win')
     118
    114119    def _run_command_with_teed_output(self, args, teed_output):
    115120        args = map(unicode, args)  # Popen will throw an exception if args are non-strings (like int())
     
    119124                                         stdout=subprocess.PIPE,
    120125                                         stderr=subprocess.STDOUT,
    121                                          close_fds=self._should_close_fds())
     126                                         close_fds=self._should_close_fds(),
     127                                         shell=self._should_use_shell())
    122128
    123129        # Use our own custom wait loop because Popen ignores a tee'd
     
    352358                                   stderr=stderr,
    353359                                   cwd=cwd,
    354                                    close_fds=self._should_close_fds())
     360                                   close_fds=self._should_close_fds(),
     361                                   shell=self._should_use_shell())
    355362        output = process.communicate(string_to_communicate)[0]
    356363
Note: See TracChangeset for help on using the changeset viewer.