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
self.replicaVar = int(replicaVar)
tdSql.init(conn.cursor(), True)
self.tmpdir = "tmp"
# record server information
self.dnodeNum = 0

View File

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