diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 10:17:34 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 10:17:34 +0000 |
commit | 61ea90a0f6be6571589e85213b4c0b021d738939 (patch) | |
tree | c09b47dd6fe278331c38aa4c6ffd9e0a616736f1 /tools/bisect-builds.py | |
parent | 56e856b168d49f7539afdb80dc2a0a67a21363a7 (diff) | |
download | chromium_src-61ea90a0f6be6571589e85213b4c0b021d738939.zip chromium_src-61ea90a0f6be6571589e85213b4c0b021d738939.tar.gz chromium_src-61ea90a0f6be6571589e85213b4c0b021d738939.tar.bz2 |
Use shlex.split to tokenize command.
This allows to use whitespaces in filenames.
TEST=run:
python tools\bisect-builds.py -a win -c "cmd /c copy /Y ""c:\Program Files (x86)\Google\Chrome\Application\30.0.1599.59\pdf.dll"" %p\\.. && %p %a" -- --enable-print-preview
NOTRY=true
Review URL: https://codereview.chromium.org/24502006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/bisect-builds.py')
-rwxr-xr-x | tools/bisect-builds.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bisect-builds.py b/tools/bisect-builds.py index 75afbf9..4da04a8 100755 --- a/tools/bisect-builds.py +++ b/tools/bisect-builds.py @@ -48,6 +48,7 @@ import optparse import os import pipes import re +import shlex import shutil import subprocess import sys @@ -366,7 +367,7 @@ def RunRevision(context, revision, zipfile, profile, num_runs, command, args): testargs.append('--no-sandbox') runcommand = [] - for token in command.split(): + for token in shlex.split(command): if token == "%a": runcommand.extend(testargs) else: |