未验证 提交 b8b5315b 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2192 from taosdata/hotfix/sangshuduo/fix-dnodes-redeploy-delete-psim-logfile

fix issue that dnodes reploy delete psim log file
......@@ -319,6 +319,7 @@ class TDDnodes:
self.dnodes.append(TDDnode(8))
self.dnodes.append(TDDnode(9))
self.dnodes.append(TDDnode(10))
self.simDeployed = False
def init(self, path):
psCmd = "ps -ef|grep -w taosd| grep -v grep | awk '{print $2}'"
......@@ -378,7 +379,10 @@ class TDDnodes:
self.sim = TDSimClient()
self.sim.init(self.path)
self.sim.setTestCluster(self.testCluster)
if (self.simDeployed == False):
self.sim.deploy()
self.simDeployed = True
self.check(index)
self.dnodes[index - 1].setTestCluster(self.testCluster)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册