test: modify testcase of hot refresh config
This commit is contained in:
parent
1a265a2e9d
commit
480f571c2b
|
@ -514,7 +514,6 @@ class TDCom:
|
|||
|
||||
def getTaosdPath(self, dnodeID="dnode1"):
|
||||
buildPath = self.getBuildPath()
|
||||
print("123456",buildPath)
|
||||
if (buildPath == ""):
|
||||
tdLog.exit("taosd not found!")
|
||||
else:
|
||||
|
|
|
@ -203,10 +203,7 @@ class TDTestCase:
|
|||
def run(self):
|
||||
|
||||
# reset log
|
||||
taosdPath = tdCom.getTaosdPath()
|
||||
print(taosdPath,"123")
|
||||
taosdLogAbsoluteFilename = taosdPath + "/log/" + "taosdlog*"
|
||||
print(taosdLogAbsoluteFilename)
|
||||
taosdLogAbsoluteFilename = tdCom.getTaosdPath() + "/log/" + "taosdlog*"
|
||||
tdSql.execute("alter all dnodes 'resetlog';")
|
||||
r = subprocess.Popen("cat {} | grep 'reset log file'".format(taosdLogAbsoluteFilename), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
stdout, stderr = r.communicate()
|
||||
|
|
Loading…
Reference in New Issue