test: modify the way to stop taosd'cluster

This commit is contained in:
chenhaoran 2022-10-25 17:57:08 +08:00
parent 07f4f68aba
commit c09c82abd9
1 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,7 @@ from util.log import *
from util.sql import *
from util.cases import *
from util.dnodes import *
from util.cluster import *
class TDTestCase:
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
@ -155,11 +156,15 @@ class TDTestCase:
# keyDict['h'] = self.hostname
# keyDict['c'] = cfgPath
# keyDict['P'] = self.serverPort
tdDnodes=cluster.dnodes
for i in range(5):
tdDnodes[i].stoptaosd()
startAction = " -s -c " + taosdCfgPath
tdLog.printNoPrefix("================================ parameter: %s"%startAction)
self.taosdCommandExe(startAction,taosdCmdRun)
tdDnodes.stop(1)
startAction = " --help"
tdLog.printNoPrefix("================================ parameter: %s"%startAction)