enh: improve runOneLinux and TDTestCase of python test scripts

This commit is contained in:
Benguang Zhao 2022-11-29 17:19:47 +08:00
parent 4f37947e42
commit f1991ac882
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class TDCases:
tdLog.info("total %d Linux test case(s) executed" % (runNum))
def runOneLinux(self, conn, fileName, replicaVar):
def runOneLinux(self, conn, fileName, replicaVar=1):
testModule = self.__dynamicLoadModule(fileName)
runNum = 0

View File

@ -166,7 +166,7 @@ class TDTestCase:
# keyDict['c'] = cfgPath
# keyDict['P'] = self.serverPort
tdDnodes=cluster.dnodes
for i in range(5):
for i in range(len(tdDnodes)):
tdDnodes[i].stoptaosd()