OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import subprocess | 7 import subprocess |
8 import sys | 8 import sys |
9 | 9 |
10 python = sys.executable | 10 python = sys.executable |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 def Main(): | 236 def Main(): |
237 builder = os.environ.get('BUILDBOT_BUILDERNAME') | 237 builder = os.environ.get('BUILDBOT_BUILDERNAME') |
238 cmd = BOT_ASSIGNMENT.get(builder) | 238 cmd = BOT_ASSIGNMENT.get(builder) |
239 if not cmd: | 239 if not cmd: |
240 sys.stderr.write('ERROR - unset/invalid builder name\n') | 240 sys.stderr.write('ERROR - unset/invalid builder name\n') |
241 sys.exit(1) | 241 sys.exit(1) |
242 | 242 |
243 env = os.environ.copy() | 243 env = os.environ.copy() |
244 env['ARCHIVE_IRT'] = builder in IRT_ARCHIVE_BUILDERS and '1' or '0' | 244 env['ARCHIVE_IRT'] = builder in IRT_ARCHIVE_BUILDERS and '1' or '0' |
245 | 245 |
| 246 cmd_patch = python + ' ' + \ |
| 247 os.path.join('..', 'native_client', 'buildbot', 'patch.py') + ' ' + \ |
| 248 os.path.join('..', 'native_client', 'ppapi.patch') |
| 249 print cmd_patch |
| 250 subprocess.call( |
| 251 cmd_patch, |
| 252 env=env, |
| 253 cwd=os.path.join('..','ppapi'), |
| 254 shell=True) |
246 print "%s runs: %s\n" % (builder, cmd) | 255 print "%s runs: %s\n" % (builder, cmd) |
247 retcode = subprocess.call(cmd, env=env, shell=True) | 256 retcode = subprocess.call(cmd, env=env, shell=True) |
248 sys.exit(retcode) | 257 sys.exit(retcode) |
249 | 258 |
250 | 259 |
251 if __name__ == '__main__': | 260 if __name__ == '__main__': |
252 Main() | 261 Main() |
OLD | NEW |