summaryrefslogtreecommitdiffstats
path: root/tools/isolate
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 /tools/isolate
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 'tools/isolate')
-rwxr-xr-xtools/isolate/run_test_from_archive.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/isolate/run_test_from_archive.py b/tools/isolate/run_test_from_archive.py
index 11bc268..654dc81 100755
--- a/tools/isolate/run_test_from_archive.py
+++ b/tools/isolate/run_test_from_archive.py
@@ -265,6 +265,8 @@ def run_tha_test(manifest, cache_dir, remote, max_cache_size, min_free_space):
if manifest.get('read_only'):
make_writable(outdir, True)
cmd = manifest['command']
+ # Ensure paths are correctly separated on windows.
+ cmd[0] = cmd[0].replace('/', os.path.sep)
logging.info('Running %s, cwd=%s' % (cmd, cwd))
return subprocess.call(cmd, cwd=cwd)
finally: