def execute_engine_test(self, engine): try: engine.start() engine.wait() except KeyboardInterrupt: engine.stop() engine.wait()
def start_engine(self, engine): try: engine.start() except Exception as e: engine.stop() engine.wait() self.fail("engine failure: {}".format(e))