test: modify testcase of hot refresh config

This commit is contained in:
chenhaoran 2024-01-02 16:29:01 +08:00
parent 1a265a2e9d
commit 480f571c2b
2 changed files with 1 additions and 5 deletions

View File

@ -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:

View File

@ -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()