add test infrastructure, use 'make test' to run it, please run before pushing

This commit is contained in:
Brian Warner 2006-11-30 15:55:26 -07:00
parent cc814ade3f
commit efeea5e5e7
3 changed files with 6 additions and 3 deletions

View File

@ -36,3 +36,4 @@
^client-basedir($|/)
^queen-basedir($|/)
^_trial_temp($|/)

View File

@ -35,7 +35,8 @@ class Client(service.MultiService):
log.msg("no queen_pburl, cannot connect")
def stopService(self):
self.connector.stopConnecting()
if self.queen_pburl:
self.connector.stopConnecting()
def _got_queen(self, queen):
log.msg("connected to queen")

View File

@ -22,8 +22,9 @@ class Queen(service.MultiService):
self.urls = {}
r = Roster()
r.setServiceParent(self)
self.urls["roster"] = self.tub.registerReference(r, "roster")
#self.urls["roster"] = self.tub.registerReference(r, "roster")
def startService(self):
service.MultiService.startService(self)
log.msg("queen running, roster is at %s" % self.urls["roster"])
log.msg("queen running")
#log.msg(" roster is at %s" % self.urls["roster"])