test: adjust case for db option
This commit is contained in:
parent
eec342630c
commit
5d507aea31
|
@ -66,7 +66,7 @@ print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $dat
|
||||||
if $rows != 3 then
|
if $rows != 3 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data(db)[19] != ready then
|
if $data(db)[15] != ready then
|
||||||
goto check_db_ready
|
goto check_db_ready
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $dat
|
||||||
if $rows != 3 then
|
if $rows != 3 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data(db)[19] != ready then
|
if $data(db)[15] != ready then
|
||||||
goto check_db_ready
|
goto check_db_ready
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $dat
|
||||||
if $rows != 3 then
|
if $rows != 3 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data(db)[19] != ready then
|
if $data(db)[15] != ready then
|
||||||
goto check_db_ready
|
goto check_db_ready
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ sql show databases
|
||||||
print ==> rows: $rows
|
print ==> rows: $rows
|
||||||
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
|
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
|
||||||
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
|
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
|
||||||
if $data(db)[19] != ready then
|
if $data(db)[15] != ready then
|
||||||
sleep 100
|
sleep 100
|
||||||
$loop_cnt = $loop_cnt + 1
|
$loop_cnt = $loop_cnt + 1
|
||||||
goto check_db_ready
|
goto check_db_ready
|
||||||
|
|
|
@ -39,7 +39,7 @@ sql show databases
|
||||||
print ==> rows: $rows
|
print ==> rows: $rows
|
||||||
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
|
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
|
||||||
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
|
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
|
||||||
if $data(db)[19] != ready then
|
if $data(db)[15] != ready then
|
||||||
sleep 100
|
sleep 100
|
||||||
$loop_cnt = $loop_cnt + 1
|
$loop_cnt = $loop_cnt + 1
|
||||||
goto check_db_ready
|
goto check_db_ready
|
||||||
|
|
|
@ -31,7 +31,7 @@ sql show databases
|
||||||
print ==> rows: $rows
|
print ==> rows: $rows
|
||||||
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
|
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
|
||||||
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
|
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
|
||||||
if $data(db)[19] != ready then
|
if $data(db)[15] != ready then
|
||||||
sleep 100
|
sleep 100
|
||||||
$loop_cnt = $loop_cnt + 1
|
$loop_cnt = $loop_cnt + 1
|
||||||
goto check_db_ready
|
goto check_db_ready
|
||||||
|
|
|
@ -90,7 +90,7 @@ class TDTestCase:
|
||||||
for db_info in databases_infos:
|
for db_info in databases_infos:
|
||||||
dbname = db_info[0]
|
dbname = db_info[0]
|
||||||
# print(dbname)
|
# print(dbname)
|
||||||
cache_last_value = db_info[16]
|
cache_last_value = db_info[18]
|
||||||
# print(cache_last_value)
|
# print(cache_last_value)
|
||||||
if dbname in ["information_schema" , "performance_schema"]:
|
if dbname in ["information_schema" , "performance_schema"]:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -43,9 +43,9 @@ class TDTestCase:
|
||||||
fsync_index = 0
|
fsync_index = 0
|
||||||
tdSql.query("show databases")
|
tdSql.query("show databases")
|
||||||
for i in range(tdSql.queryCols):
|
for i in range(tdSql.queryCols):
|
||||||
if tdSql.cursor.description[i][0] == "wal":
|
if tdSql.cursor.description[i][0] == "wal_level":
|
||||||
wal_index = i
|
wal_index = i
|
||||||
if tdSql.cursor.description[i][0] == "fsync":
|
if tdSql.cursor.description[i][0] == "wal_fsync_period":
|
||||||
fsync_index = i
|
fsync_index = i
|
||||||
|
|
||||||
tdSql.execute("drop database if exists db1")
|
tdSql.execute("drop database if exists db1")
|
||||||
|
|
Loading…
Reference in New Issue