fix compile
This commit is contained in:
parent
2e13b5209d
commit
4c21f20118
|
@ -77,6 +77,7 @@ class TDTestCase:
|
|||
|
||||
|
||||
def run(self):
|
||||
print(f"start taosd run")
|
||||
bPath=self.getBuildPath()
|
||||
cPath=self.getCfgPath()
|
||||
dbname = "test"
|
||||
|
@ -86,17 +87,20 @@ class TDTestCase:
|
|||
tableNumbers=100
|
||||
recordNumbers1=100
|
||||
recordNumbers2=1000
|
||||
tdsqlF=tdCom.newTdSql()
|
||||
print(tdsqlF)
|
||||
tdsqlF.query(f"SELECT SERVER_VERSION();")
|
||||
print(tdsqlF.query(f"SELECT SERVER_VERSION();"))
|
||||
oldServerVersion=tdsqlF.queryResult[0][0]
|
||||
tdLog.info(f"Base server version is {oldServerVersion}")
|
||||
tdsqlF.query(f"SELECT CLIENT_VERSION();")
|
||||
#tdsqlF=tdCom.newTdSql()
|
||||
#print(tdsqlF)
|
||||
|
||||
# the oldClientVersion can't be updated in the same python process,so the version is new compiled verison
|
||||
oldClientVersion=tdsqlF.queryResult[0][0]
|
||||
tdLog.info(f"Base client version is {oldClientVersion}")
|
||||
oldServerVersion = '3.0.1.0'
|
||||
#tdsqlF.query(f"SELECT SERVER_VERSION();")
|
||||
#print(tdsqlF.query(f"SELECT SERVER_VERSION();"))
|
||||
#oldServerVersion=tdsqlF.queryResult[0][0]
|
||||
#tdLog.info(f"Base server version is {oldServerVersion}")
|
||||
#tdsqlF.query(f"SELECT CLIENT_VERSION();")
|
||||
#
|
||||
## the oldClientVersion can't be updated in the same python process,so the version is new compiled verison
|
||||
#oldClientVersion=tdsqlF.queryResult[0][0]
|
||||
|
||||
#tdLog.info(f"Base client version is {oldClientVersion}")
|
||||
|
||||
tdLog.printNoPrefix(f"==========step1:prepare and check data in old version-{oldServerVersion}")
|
||||
tdLog.info(f" LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
||||
|
|
Loading…
Reference in New Issue