integration testing - How to have buildbot running a server and retrieving output after tests -
i'd run integration tests against running server , retrieve server output check later.
here cheap way local slave (otherwhise you'll need fileupload step)
class stopserver(shellcommand): def _init_(self): shellcommand.__init__(self, command=['pkill', '-f', 'my-server-name'], workdir='build/python', description='stopping test server') def createsummary(self, log): buildername = self.getproperty("buildername") f = '/home/buildbot/slave/%s/build/python/nohup.out' % buildername output = open(f, "r").read() self.addcompletelog('server output', output) class startserver(shellcommand): def _init_(self): shellcommand.__init__(self, command=['./start-test-server.sh'], workdir='build/python', haltonfailure=true, description='starting test server')
the shell script nohup stderr , stdout redirect
Comments
Post a Comment