def follow(self): from twisted.internet import reactor from buildbot_worker.scripts.logwatcher import LogWatcher self.rc = 0 print("Following twistd.log until startup finished..") lw = LogWatcher("twistd.log") d = lw.start() d.addCallbacks(self._success, self._failure) reactor.run() return self.rc