def main(): try: config.parse_args() logging.setup(CONF, 'murano') workers = CONF.engine.engine_workers if not workers: workers = processutils.get_worker_count() launcher = service.launch(CONF, engine.EngineService(), workers=workers) launcher.wait() except RuntimeError as e: sys.stderr.write("ERROR: %s\n" % e) sys.exit(1)
def setUp(self): super(TestEngineService, self).setUp() self.engine = engine.EngineService() self.addCleanup(mock.patch.stopall)