Skip to content

Commit

Permalink
start_slaves script
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed Aug 21, 2010
1 parent 19cf950 commit 912044c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/buildbot/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ c['slaves'] = [
BuildSlave('winxp-i386', 'secret'),
]
c['slavePortnum'] = 9989
slavenames = [s.slavename for s in c['slaves']]


####### CHANGESOURCES
Expand Down
15 changes: 15 additions & 0 deletions test/buildbot/start_slaves.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!env python
import sys, os

if len(sys.argv) != 2:
print "Usage: %s <ssh-private-key>" % sys.argv[0]
exit(1)
private_key = sys.argv[1]

execfile('master.cfg')
for s in slavenames:
host = s + '.buildbot'
env = "BUILDSLAVE=buildslave" if 'win' in s else ""
if os.system("%s sh create_slave.sh '%s' %s" % \
(env, private_key, host)):
print "ERROR"

0 comments on commit 912044c

Please sign in to comment.