modify start api for no remove taosdlog file

This commit is contained in:
Ping Xiao 2022-10-25 19:14:43 +08:00
parent a2ceb04c79
commit 05a34b5310
1 changed files with 3 additions and 1 deletions

View File

@ -240,12 +240,14 @@ class TDTestCase:
time.sleep(3) time.sleep(3)
tdLog.info("================= stop dnode, and remove data file, then start dnode ===========================") tdLog.info("================= stop dnode, and remove data file, then start dnode ===========================")
tdDnodes.stop(1) tdDnodes.stop(1)
# time.sleep(5) # time.sleep(5)
dataPath = buildPath + "/../sim/dnode1/data/*" dataPath = buildPath + "/../sim/dnode1/data/*"
shellCmd = 'rm -rf ' + dataPath shellCmd = 'rm -rf ' + dataPath
tdLog.info(shellCmd) tdLog.info(shellCmd)
os.system(shellCmd) os.system(shellCmd)
tdDnodes.start(1) #tdDnodes.start(1)
tdDnodes.starttaosd(1)
time.sleep(2) time.sleep(2)
######### redo to consume ######### redo to consume