# HG changeset patch # User Jeff Hammel # Date 1295808854 28800 # Node ID a622d6b4db4a5bed67d304cdf8cad01180c1411f # Parent 95b8fec83ad78873cecf224591c21633f9e3feda use non-default ports for testing diff -r 95b8fec83ad7 -r a622d6b4db4a autobot/projects/autobot/__init__.py --- a/autobot/projects/autobot/__init__.py Sun Jan 23 10:49:36 2011 -0800 +++ b/autobot/projects/autobot/__init__.py Sun Jan 23 10:54:14 2011 -0800 @@ -6,7 +6,7 @@ """ factory to test autobot """ - def __init__(self): + def __init__(self, slaveport=7357, htmlport=7358): # setup the environment PythonSourceFactory.__init__(self, name='autobot', @@ -25,9 +25,12 @@ # make a master, slave pair self.addStep(ShellCommand(command=[WithProperties('%(create-autobot)s'), '-f', '-', # all factories, + '--slaveport', str(slaveport), + '--htmlport', str(htmlport) 'bot'], description="make an autobot", - workdir=WithProperties('%(virtualenv)s'))) + workdir=WithProperties('%(virtualenv)s'), + haltOnFailure=True)) @@ -43,9 +46,10 @@ # try to access the waterfall - self.addStep(ShellCommand(command=['curl', 'http://localhost:8010/'])) + self.addStep(ShellCommand(command=['curl', + 'http://localhost:%s/' % htmlport])) - # could try to actually build + # could try to actually build, but we won't here # stop them! self.addStep(ShellCommand(command=[WithProperties('%(buildbot)s'),