enh: improve runOneLinux and TDTestCase of python test scripts
This commit is contained in:
parent
4f37947e42
commit
f1991ac882
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue