diff options
author | csharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 20:43:59 +0000 |
---|---|---|
committer | csharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 20:43:59 +0000 |
commit | 8ba98358669f11a277f42f7f2bee3bbf6107c5ae (patch) | |
tree | 9dd5efa7e12704b02fe2756011489becc12d001c /testing/test_env.py | |
parent | e83f4a2fe1c92de2711510ca1c7f44c8c5fabd13 (diff) | |
download | chromium_src-8ba98358669f11a277f42f7f2bee3bbf6107c5ae.zip chromium_src-8ba98358669f11a277f42f7f2bee3bbf6107c5ae.tar.gz chromium_src-8ba98358669f11a277f42f7f2bee3bbf6107c5ae.tar.bz2 |
Adjust Paths before Execution
Ensure that the file paths passed to subprocess contain the appropriate separators for their OS.
NOTRY=true
R=maruel@chromium.org
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10413055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing/test_env.py')
-rwxr-xr-x | testing/test_env.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/test_env.py b/testing/test_env.py index 4e60dbd..84967d1 100755 --- a/testing/test_env.py +++ b/testing/test_env.py @@ -23,6 +23,8 @@ def run_executable(cmd, env): env['LANGUAGE'] = 'en_US.UTF-8' # Used by base/base_paths_linux.cc env['CR_SOURCE_ROOT'] = os.path.abspath(ROOT_DIR).encode('utf-8') + # Ensure paths are correctly separated on windows. + cmd[0] = cmd[0].replace('/', os.path.sep) if cmd[0].endswith('.py'): cmd.insert(0, sys.executable) try: |