From 8ba98358669f11a277f42f7f2bee3bbf6107c5ae Mon Sep 17 00:00:00 2001 From: "csharp@chromium.org" Date: Wed, 23 May 2012 20:43:59 +0000 Subject: 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 --- testing/test_env.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testing') 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: -- cgit v1.1