test:modify testcase of data Compatibility
This commit is contained in:
parent
96eec9f47a
commit
e7526a081b
|
@ -48,7 +48,7 @@ class TDTestCase:
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
selfPath = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
if ("community" in selfPath):
|
if ("community" in selfPath):
|
||||||
cfgPath = buildPath + "/../community/sim/dnode1/cfg/"
|
cfgPath = buildPath + "/../sim/dnode1/cfg/"
|
||||||
else:
|
else:
|
||||||
cfgPath = buildPath + "/../sim/dnode1/cfg/"
|
cfgPath = buildPath + "/../sim/dnode1/cfg/"
|
||||||
|
|
||||||
|
@ -143,9 +143,12 @@ class TDTestCase:
|
||||||
tdsql.query("select * from db.ct4")
|
tdsql.query("select * from db.ct4")
|
||||||
tdsql.checkData(0,1,14)
|
tdsql.checkData(0,1,14)
|
||||||
tdsql.query("describe information_schema.ins_databases;")
|
tdsql.query("describe information_schema.ins_databases;")
|
||||||
# for i in tdsql.queryResult[i][0]:
|
qRows=tdsql.queryRows
|
||||||
# tdsql.checkData(0,1,13)
|
for i in range(qRows) :
|
||||||
|
if tdsql.queryResult[i][0]=="retentions" :
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
def stop(self):
|
def stop(self):
|
||||||
tdSql.close()
|
tdSql.close()
|
||||||
tdLog.success(f"{__file__} successfully executed")
|
tdLog.success(f"{__file__} successfully executed")
|
||||||
|
|
Loading…
Reference in New Issue