提交 c09c82ab 编写于 作者: haoranc's avatar haoranc

test: modify the way to stop taosd'cluster

上级 07f4f68a
...@@ -14,6 +14,7 @@ from util.log import * ...@@ -14,6 +14,7 @@ from util.log import *
from util.sql import * from util.sql import *
from util.cases import * from util.cases import *
from util.dnodes import * from util.dnodes import *
from util.cluster import *
class TDTestCase: class TDTestCase:
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\ #updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
...@@ -155,11 +156,15 @@ class TDTestCase: ...@@ -155,11 +156,15 @@ class TDTestCase:
# keyDict['h'] = self.hostname # keyDict['h'] = self.hostname
# keyDict['c'] = cfgPath # keyDict['c'] = cfgPath
# keyDict['P'] = self.serverPort # keyDict['P'] = self.serverPort
tdDnodes=cluster.dnodes
for i in range(5):
tdDnodes[i].stoptaosd()
startAction = " -s -c " + taosdCfgPath startAction = " -s -c " + taosdCfgPath
tdLog.printNoPrefix("================================ parameter: %s"%startAction) tdLog.printNoPrefix("================================ parameter: %s"%startAction)
self.taosdCommandExe(startAction,taosdCmdRun) self.taosdCommandExe(startAction,taosdCmdRun)
tdDnodes.stop(1)
startAction = " --help" startAction = " --help"
tdLog.printNoPrefix("================================ parameter: %s"%startAction) tdLog.printNoPrefix("================================ parameter: %s"%startAction)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册