提交 4c21f201 编写于 作者: G gccgdb1234

fix compile

上级 2e13b520
...@@ -77,6 +77,7 @@ class TDTestCase: ...@@ -77,6 +77,7 @@ class TDTestCase:
def run(self): def run(self):
print(f"start taosd run")
bPath=self.getBuildPath() bPath=self.getBuildPath()
cPath=self.getCfgPath() cPath=self.getCfgPath()
dbname = "test" dbname = "test"
...@@ -86,17 +87,20 @@ class TDTestCase: ...@@ -86,17 +87,20 @@ class TDTestCase:
tableNumbers=100 tableNumbers=100
recordNumbers1=100 recordNumbers1=100
recordNumbers2=1000 recordNumbers2=1000
tdsqlF=tdCom.newTdSql() #tdsqlF=tdCom.newTdSql()
print(tdsqlF) #print(tdsqlF)
tdsqlF.query(f"SELECT SERVER_VERSION();")
print(tdsqlF.query(f"SELECT SERVER_VERSION();")) oldServerVersion = '3.0.1.0'
oldServerVersion=tdsqlF.queryResult[0][0] #tdsqlF.query(f"SELECT SERVER_VERSION();")
tdLog.info(f"Base server version is {oldServerVersion}") #print(tdsqlF.query(f"SELECT SERVER_VERSION();"))
tdsqlF.query(f"SELECT CLIENT_VERSION();") #oldServerVersion=tdsqlF.queryResult[0][0]
#tdLog.info(f"Base server version is {oldServerVersion}")
# the oldClientVersion can't be updated in the same python process,so the version is new compiled verison #tdsqlF.query(f"SELECT CLIENT_VERSION();")
oldClientVersion=tdsqlF.queryResult[0][0] #
tdLog.info(f"Base client version is {oldClientVersion}") ## 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.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 ") tdLog.info(f" LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册