OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be 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 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 'nacl-hardy32_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', | 46 'nacl-hardy32_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', |
47 'nacl-lucid32_m32_n32_dbg': 'bash buildbot/buildbot_linux.sh dbg 32', | 47 'nacl-lucid32_m32_n32_dbg': 'bash buildbot/buildbot_linux.sh dbg 32', |
48 'nacl-lucid32_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', | 48 'nacl-lucid32_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', |
49 'nacl-hardy64_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', | 49 'nacl-hardy64_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', |
50 'nacl-lucid64_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', | 50 'nacl-lucid64_m32_n32_opt': 'bash buildbot/buildbot_linux.sh opt 32', |
51 'nacl-hardy64_m64_n64_opt': 'bash buildbot/buildbot_linux.sh opt 64', | 51 'nacl-hardy64_m64_n64_opt': 'bash buildbot/buildbot_linux.sh opt 64', |
52 'nacl-lucid64_m64_n64_dbg': 'bash buildbot/buildbot_linux.sh dbg 64', | 52 'nacl-lucid64_m64_n64_dbg': 'bash buildbot/buildbot_linux.sh dbg 64', |
53 'nacl-lucid64_m64_n64_opt': 'bash buildbot/buildbot_linux.sh opt 64', | 53 'nacl-lucid64_m64_n64_opt': 'bash buildbot/buildbot_linux.sh opt 64', |
54 'nacl-arm_opt': 'bash buildbot/buildbot_arm.sh opt', | 54 'nacl-arm_opt': 'bash buildbot/buildbot_arm.sh opt', |
55 'nacl-lucid64-pnacl1': 'bash buildbot/buildbot_pnacl1.sh', | 55 'nacl-lucid64-pnacl1': 'bash buildbot/buildbot_pnacl1.sh', |
56 'nacl-lucid64-pnacl2': 'bash buildbot/buildbot_linux.sh opt 64', | 56 'nacl-lucid64-pnacl2': 'bash buildbot/buildbot_pnacl2.sh', |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 def Main(): | 60 def Main(): |
61 cmd = BOT_ASSIGNMENT.get(os.environ.get('BUILDBOT_BUILDERNAME')) | 61 cmd = BOT_ASSIGNMENT.get(os.environ.get('BUILDBOT_BUILDERNAME')) |
62 if not cmd: | 62 if not cmd: |
63 sys.stderr.write('ERROR - unset/invalid builder name\n') | 63 sys.stderr.write('ERROR - unset/invalid builder name\n') |
64 sys.exit(1) | 64 sys.exit(1) |
65 | 65 |
66 p = subprocess.Popen(cmd, shell=True) | 66 p = subprocess.Popen(cmd, shell=True) |
67 p.wait() | 67 p.wait() |
68 | 68 |
69 sys.exit(p.returncode) | 69 sys.exit(p.returncode) |
70 | 70 |
71 | 71 |
72 if __name__ == '__main__': | 72 if __name__ == '__main__': |
73 Main() | 73 Main() |
OLD | NEW |