From c09c82abd90601a0000f51ca3b5916bb0790f373 Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Tue, 25 Oct 2022 17:57:08 +0800 Subject: [PATCH] test: modify the way to stop taosd'cluster --- tests/system-test/0-others/taosdShell.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/system-test/0-others/taosdShell.py b/tests/system-test/0-others/taosdShell.py index 75fdf0ec8e..e09c8edce9 100644 --- a/tests/system-test/0-others/taosdShell.py +++ b/tests/system-test/0-others/taosdShell.py @@ -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)