fix: forgot to submit army/frame/etool.py
This commit is contained in:
parent
49a4628868
commit
0b7ae35126
|
@ -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
|
||||
|
|
|
@ -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 != "":
|
||||
|
|
Loading…
Reference in New Issue