changeset 129:a622d6b4db4a

use non-default ports for testing
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 23 Jan 2011 10:54:14 -0800
parents 95b8fec83ad7
children 7d0a4c2cd171
files autobot/projects/autobot/__init__.py
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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'),