fix: forgot to submit army/frame/etool.py

This commit is contained in:
Alex Duan 2025-02-05 15:59:59 +08:00
parent 49a4628868
commit 0b7ae35126
2 changed files with 23 additions and 3 deletions

View File

@ -37,6 +37,7 @@ class TBase:
# save param # save param
self.replicaVar = int(replicaVar) self.replicaVar = int(replicaVar)
tdSql.init(conn.cursor(), True) tdSql.init(conn.cursor(), True)
self.tmpdir = "tmp"
# record server information # record server information
self.dnodeNum = 0 self.dnodeNum = 0

View File

@ -23,12 +23,31 @@ import frame.epath
import frame.eos import frame.eos
from frame.log import * from frame.log import *
# run taosBenchmark with command or json file mode # taosdump
def benchMark(command = "", json = "") : def taosDumpFile():
# get taosBenchmark path bmFile = frame.epath.binFile("taosdump")
if frame.eos.isWin():
bmFile += ".exe"
return bmFile
# taosBenchmark
def benchMarkFile():
bmFile = frame.epath.binFile("taosBenchmark") bmFile = frame.epath.binFile("taosBenchmark")
if frame.eos.isWin(): if frame.eos.isWin():
bmFile += ".exe" bmFile += ".exe"
return bmFile
# taosAdapter
def taosAdapterFile():
bmFile = frame.epath.binFile("taosAdapter")
if frame.eos.isWin():
bmFile += ".exe"
return bmFile
# run taosBenchmark with command or json file mode
def benchMark(command = "", json = "") :
# get taosBenchmark path
bmFile = benchMarkFile()
# run # run
if command != "": if command != "":