diff options
author | bradnelson@google.com <bradnelson@google.com@78cadc50-ecff-11dd-a971-7dbc132099af> | 2011-04-02 01:48:19 +0000 |
---|---|---|
committer | bradnelson@google.com <bradnelson@google.com@78cadc50-ecff-11dd-a971-7dbc132099af> | 2011-04-02 01:48:19 +0000 |
commit | 49db410d2c638f1a1999bbd4f2a70258d736f8f3 (patch) | |
tree | e32a9c1626a8a469718279397688a8d9efedc48a /buildbot | |
parent | 58cc35306d7904897b43f82f85ab70b000f92988 (diff) | |
download | gyp-49db410d2c638f1a1999bbd4f2a70258d736f8f3.tar.gz |
Fixing syntax error (why didn't this show up before?)
Fixing mistakes in buildbot config so it actually works on the bots.
BUG=None
TEST=None
TBR=jeanluc@google.com
Review URL: http://codereview.chromium.org/6677120
git-svn-id: http://gyp.googlecode.com/svn/trunk@910 78cadc50-ecff-11dd-a971-7dbc132099af
Diffstat (limited to 'buildbot')
-rwxr-xr-x | buildbot/buildbot_run.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/buildbot/buildbot_run.py b/buildbot/buildbot_run.py index 22d3985c..1091d3e0 100755 --- a/buildbot/buildbot_run.py +++ b/buildbot/buildbot_run.py @@ -23,27 +23,26 @@ def GypTestFormat(title, format, msvs_version=None): 0 for sucesss, 1 for failure. """ print '@@@BUILD_STEP ' + title + '@@@' + sys.stdout.flush() buildbot_dir = os.path.dirname(os.path.abspath(__file__)) trunk_dir = os.path.dirname(buildbot_dir) root_dir = os.path.dirname(trunk_dir) + env = os.environ.copy() if msvs_version: - env = { - 'GYP_MSVS_VERSION': msvs_version, - } - else: - env = None - retcode = subprocess.call( - ['python', 'trunk/gyptest.py', + env['GYP_MSVS_VERSION'] = msvs_version + retcode = subprocess.call(' '.join( + [sys.executable, 'trunk/gyptest.py', '--all', '--passed', '--format', format, '--chdir', 'trunk', - '--path', '../scons'], - cwd=root_dir, env=env) + '--path', '../scons']), + cwd=root_dir, env=env, shell=True) if retcode: # Emit failure tag, and keep going. print '@@@STEP_FAILURE@@@' return 1 + return 0 def GypBuild(): @@ -55,7 +54,8 @@ def GypBuild(): retcode += GypTestFormat('xcode', format='xcode') elif sys.platform == 'win32': retcode += GypTestFormat('msvs-2008', format='msvs', msvs_version='2008') - retcode += GypTestFormat('msvs-2010', format='msvs', msvs_version='2010') + if os.environ['BUILDBOT_BUILDERNAME'] == 'gyp-win64': + retcode += GypTestFormat('msvs-2010', format='msvs', msvs_version='2010') else: raise Exception('Unknown platform') if retcode: |