提交 ce6e62a8 编写于 作者: G Ganlin Zhao

revert test cases

上级 4672f87d
......@@ -71,7 +71,7 @@ class TDTestCase:
time.sleep(3)
ret = tdSql.query('show vnodes "{}"'.format(dnodeEndpoint))
tdSql.checkRows(2)
tdSql.checkRows(1)
tdSql.checkData(0, 0, 2)
tdSql.checkData(0, 1, "leader")
......
......@@ -70,7 +70,6 @@ class TDTestCase:
tdSql.error("select * from dev_001 where \"name\" = 'first'")
# TS-1577
time.sleep(1)
tdSql.query("show databases")
rows = tdSql.queryRows
......
......@@ -108,8 +108,8 @@ class TDTestCase:
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# convert end
......
......@@ -1312,12 +1312,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -1855,13 +1855,12 @@ class TDTestCase:
# TSIM: sql drop database $db
tdLog.info('drop database db')
tdSql.execute('drop database db')
time.sleep(1)
# TSIM: sql show databases
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -2283,13 +2283,12 @@ class TDTestCase:
# TSIM: sql drop database $db
tdLog.info('drop database db')
tdSql.execute('drop database db')
time.sleep(1)
# TSIM: sql show databases
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -2732,12 +2732,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -2056,12 +2056,11 @@ class TDTestCase:
tdLog.info('sql drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -566,12 +566,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -777,12 +777,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -561,12 +561,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -771,12 +771,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -803,12 +803,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -925,12 +925,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -177,12 +177,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -2301,12 +2301,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -1698,12 +1698,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -352,12 +352,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -561,12 +561,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -769,12 +769,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -805,12 +805,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -876,12 +876,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -563,12 +563,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -562,12 +562,11 @@ class TDTestCase:
tdLog.info('drop database db')
tdSql.execute('drop database db')
# TSIM: sql show databases
time.sleep(1)
tdLog.info('show databases')
tdSql.query('show databases')
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(1)')
tdSql.checkRows(1)
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: endi
# TSIM:
......
......@@ -101,9 +101,8 @@ class TDTestCase:
tdSql.execute("drop database db")
tdSql.execute("drop database db1")
time.sleep(1)
tdSql.query("show databases")
tdSql.checkRows(1)
tdSql.checkRows(0)
os.system("%s -i ./taosdumptest/tmp1" % binPath)
os.system("%s -i ./taosdumptest/tmp2" % binPath)
......
......@@ -94,9 +94,8 @@ class TDTestCase:
binPath)
tdSql.execute("drop database db")
time.sleep(1)
tdSql.query("show databases")
tdSql.checkRows(1)
tdSql.checkRows(0)
os.system("%s -i ./taosdumptest/tmp -y" % binPath)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册