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