OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 The Chromium 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 """ Initialize the environment variables and start the buildbot slave. | 6 """ Initialize the environment variables and start the buildbot slave. |
7 """ | 7 """ |
8 | 8 |
9 import os | 9 import os |
10 import subprocess | 10 import subprocess |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 slave_path = [depot_tools, '/usr/bin', '/bin', | 156 slave_path = [depot_tools, '/usr/bin', '/bin', |
157 '/usr/sbin', '/sbin', '/usr/local/bin'] | 157 '/usr/sbin', '/sbin', '/usr/local/bin'] |
158 os.environ['PATH'] = os.pathsep.join(slave_path) | 158 os.environ['PATH'] = os.pathsep.join(slave_path) |
159 | 159 |
160 elif sys.platform == 'cygwin': | 160 elif sys.platform == 'cygwin': |
161 #TODO(maruel): Implement me. | 161 #TODO(maruel): Implement me. |
162 pass | 162 pass |
163 else: | 163 else: |
164 raise NotImplementedError('Unknown platform') | 164 raise NotImplementedError('Unknown platform') |
165 | 165 |
166 # Make sure the path is ok before loading buildbot and twisted. | |
167 sys.path.append(os.path.join('..', 'third_party', 'buildbot_7_12')) | |
nsylvain
2010/11/05 01:24:00
The reason why it was in makefile is that we could
M-A Ruel
2010/11/05 01:51:58
My plan is to switch all the slaves to 0.8.2 but k
| |
168 sys.path.append(os.path.join('..', 'third_party', 'twisted_8_1')) | |
169 | |
170 # Reboot the computer when the master tells the slave to terminate. | |
171 HotPatchSlaveBuilder() | |
172 | |
166 # Run the slave. | 173 # Run the slave. |
167 HotPatchSlaveBuilder() | |
168 import twisted.scripts.twistd as twistd | 174 import twisted.scripts.twistd as twistd |
169 twistd.run() | 175 twistd.run() |
170 | 176 |
171 | 177 |
172 if '__main__' == __name__: | 178 if '__main__' == __name__: |
173 main() | 179 main() |
OLD | NEW |