def startServer(self,
            SQLserver,
            key=0,
            serverName=None,
            singleWorker=False,
            resetDir=True,
            **kwargs):

        if key in self.servers:
            server = self.servers[key]
            server.resetIfNeeded()
            return server

        if not serverName:
            serverName = 'localhost'
            if key != 0:
                serverName += '%s' % key
        reposDir = os.path.join(self.topDir, 'repos-%s' % key)
        reposDB = SQLserver.getDB("testdb-%s" % key, keepExisting=True)
        if resetDir:
            reposDB.reset()

        server = self.serverClass(reposDir,
                nameList=serverName,
                reposDB=reposDB,
                singleWorker=singleWorker,
                **kwargs)
        server.start()
        self.servers[key] = server
        return server
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/ServerCache.startServer/original