OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 import re | 6 import re |
7 | 7 |
8 import buildbot | 8 import buildbot |
9 from buildbot import interfaces, util | 9 from buildbot import interfaces, util |
10 from buildbot.buildslave import BuildSlave | 10 from buildbot.buildslave import BuildSlave |
11 from buildbot.status import mail | 11 from buildbot.status import mail |
12 from buildbot.status.builder import BuildStatus | 12 from buildbot.status.builder import BuildStatus |
13 from twisted.python import log | 13 from twisted.python import log |
14 from zope.interface import implements | 14 from zope.interface import implements |
15 | 15 |
16 from master.autoreboot_buildslave import AutoRebootBuildSlave | 16 from master.autoreboot_buildslave import AutoRebootBuildSlave |
17 try: | 17 from master.chromium_status import WebStatus |
18 from master.chromium_status import WebStatus | |
19 except ImportError: | |
20 from buildbot.status.web.baseweb import WebStatus | |
21 | 18 |
22 from master import slaves_list | 19 from master import slaves_list |
23 import config | 20 import config |
24 | 21 |
25 | 22 |
26 def HackMaxTime(maxTime=8*60*60): | 23 def HackMaxTime(maxTime=8*60*60): |
27 """Set maxTime default value to 8 hours. This function must be called before | 24 """Set maxTime default value to 8 hours. This function must be called before |
28 adding steps.""" | 25 adding steps.""" |
29 from buildbot.process.buildstep import RemoteShellCommand | 26 from buildbot.process.buildstep import RemoteShellCommand |
30 assert RemoteShellCommand.__init__.func_defaults == (None, 1, 1, 1200, None, | 27 assert RemoteShellCommand.__init__.func_defaults == (None, 1, 1, 1200, None, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 execfile('.manhole', values) | 251 execfile('.manhole', values) |
255 if 'debugPassword' in values: | 252 if 'debugPassword' in values: |
256 c['debugPassword'] = values['debugPassword'] | 253 c['debugPassword'] = values['debugPassword'] |
257 interface = 'tcp:%s:interface=127.0.0.1' % values.get('port', 0) | 254 interface = 'tcp:%s:interface=127.0.0.1' % values.get('port', 0) |
258 if 'port' in values and 'user' in values and 'password' in values: | 255 if 'port' in values and 'user' in values and 'password' in values: |
259 c['manhole'] = manhole.PasswordManhole(interface, values['user'], | 256 c['manhole'] = manhole.PasswordManhole(interface, values['user'], |
260 values['password']) | 257 values['password']) |
261 elif 'port' in values: | 258 elif 'port' in values: |
262 c['manhole'] = manhole.AuthorizedKeysManhole(interface, | 259 c['manhole'] = manhole.AuthorizedKeysManhole(interface, |
263 os.path.expanduser("~/.ssh/authorized_keys")) | 260 os.path.expanduser("~/.ssh/authorized_keys")) |
OLD | NEW |