summaryrefslogtreecommitdiffstats
path: root/testing/test_env.py
diff options
context:
space:
mode:
authorcsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-23 20:43:59 +0000
committercsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-23 20:43:59 +0000
commit8ba98358669f11a277f42f7f2bee3bbf6107c5ae (patch)
tree9dd5efa7e12704b02fe2756011489becc12d001c /testing/test_env.py
parente83f4a2fe1c92de2711510ca1c7f44c8c5fabd13 (diff)
downloadchromium_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-xtesting/test_env.py2
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: