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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -