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

fix issue that dnodes reploy delete psim log file
This commit is contained in:
Shengliang Guan 2020-06-08 20:50:16 +08:00 committed by GitHub
commit b8b5315bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View 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)
self.sim.deploy()
if (self.simDeployed == False):
self.sim.deploy()
self.simDeployed = True
self.check(index)
self.dnodes[index - 1].setTestCluster(self.testCluster)