summaryrefslogtreecommitdiffstats
path: root/tools/bisect_utils.py
diff options
context:
space:
mode:
authorsimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 19:29:50 +0000
committersimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 19:29:50 +0000
commit2deb10df4b5547e74f4ff89652421f7ab780f018 (patch)
tree527f63ab984f058e8722f3811c75d202a09fb5b5 /tools/bisect_utils.py
parent7bfc16ace99007fd1f2d75096651110be691c693 (diff)
downloadchromium_src-2deb10df4b5547e74f4ff89652421f7ab780f018.zip
chromium_src-2deb10df4b5547e74f4ff89652421f7ab780f018.tar.gz
chromium_src-2deb10df4b5547e74f4ff89652421f7ab780f018.tar.bz2
Added windows support for bisect script. Added build_preference parameter to bisect script to specify build system.
BUG= NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12712009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188451 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/bisect_utils.py')
-rw-r--r--tools/bisect_utils.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/bisect_utils.py b/tools/bisect_utils.py
index 353867d..0439d76 100644
--- a/tools/bisect_utils.py
+++ b/tools/bisect_utils.py
@@ -28,6 +28,7 @@ solutions = [
},
]
"""
+GCLIENT_SPEC = ''.join([l for l in GCLIENT_SPEC.splitlines()])
def OutputAnnotationStepStart(name):
@@ -76,8 +77,15 @@ def RunGClient(params):
Returns:
The return code of the call.
"""
+ if os.name == 'nt':
+ # "HOME" isn't normally defined on windows, but is needed
+ # for git to find the user's .netrc file.
+ if not os.getenv('HOME'):
+ os.environ['HOME'] = os.environ['USERPROFILE']
+
+ shell = os.name == 'nt'
cmd = ['gclient'] + params
- return subprocess.call(cmd)
+ return subprocess.call(cmd, shell=shell)
def RunGClientAndCreateConfig():