def runTests(self): """Run tests""" # fire plugin hook runner = self._makeRunner() self.result = runner.run(self.test) if self.exit: sys.exit(not self.result.wasSuccessful())
def runTests(self): """Run tests""" # fire plugin hook runner = self._makeRunner() try: self.result = runner.run(self.test) except Exception as e: log.debug('Internal Error', exc_info=True) sys.stderr.write('Internal Error: runTests aborted: %s\n'%(e)) if self.exit: sys.exit(1) if self.exit: sys.exit(not self.result.wasSuccessful())
def runTests(self): """Run tests""" # fire plugin hook runner = self._makeRunner() try: self.result = runner.run(self.test) except Exception as e: log.exception('Internal Error') sys.stderr.write('Internal Error: runTests aborted: %s\n' % (e)) if self.exit: #sys.exit(1) #avoid exit to repeat running test case print("sys.exit(1)") if self.exit: #sys.exit(not self.result.wasSuccessful()) # avoid exit to repeat running test case print(not self.result.wasSuccessful())