未验证 提交 50b4eff5 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

[TD-13052]<feature>: taosdump prepare for 3.0 (#11123)

* [TD-13052]<feature>: taosdump prepare for 3.0

* test CI

* add -y in tools/taosdumpTestNanoSupport.py

* add -g in tools/taosdumpTestNanoSupport.py

* fix keep for enterprise edition

* update taos-tools
上级 308ac434
Subproject commit 8145dd1713ab9e7652ea621ca7e6895fd0b21d65
Subproject commit 33cdfe4f90a209f105c1b6091439798a9cde1e93
......@@ -85,9 +85,9 @@ class TDTestCase:
else:
tdLog.info("taosdump found: %s" % binPath)
os.system("%s --databases db -o ./taosdumptest/tmp1" % binPath)
os.system("%s -y --databases db -o ./taosdumptest/tmp1" % binPath)
os.system(
"%s --databases db1 -o ./taosdumptest/tmp2" %
"%s -y --databases db1 -o ./taosdumptest/tmp2" %
binPath)
tdSql.execute("drop database db")
......@@ -168,7 +168,7 @@ class TDTestCase:
tdSql.query("show stables")
tdSql.checkRows(2)
os.system(
"%s --databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1" %
"%s -y --databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1" %
binPath)
tdSql.execute("drop database db12312313231231321312312312_323")
os.system("%s -i ./taosdumptest/tmp1" % binPath)
......
......@@ -132,15 +132,15 @@ class TDTestCase:
# dump all data
os.system(
"%s --databases timedb1 -o ./taosdumptest/dumptmp1" %
"%s -y -g --databases timedb1 -o ./taosdumptest/dumptmp1" %
binPath)
# dump part data with -S -E
os.system(
'%s --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 ' %
'%s -y -g --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 ' %
binPath)
os.system(
'%s --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 ' %
'%s -y -g --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 ' %
binPath)
tdSql.execute("drop database timedb1")
......@@ -198,14 +198,14 @@ class TDTestCase:
self.createdb(precision="us")
os.system(
"%s --databases timedb1 -o ./taosdumptest/dumptmp1" %
"%s -y -g --databases timedb1 -o ./taosdumptest/dumptmp1" %
binPath)
os.system(
'%s --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 ' %
'%s -y -g --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 ' %
binPath)
os.system(
'%s --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 ' %
'%s -y -g --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 ' %
binPath)
os.system("%s -i ./taosdumptest/dumptmp1" % binPath)
......@@ -267,14 +267,14 @@ class TDTestCase:
self.createdb(precision="ms")
os.system(
"%s --databases timedb1 -o ./taosdumptest/dumptmp1" %
"%s -y -g --databases timedb1 -o ./taosdumptest/dumptmp1" %
binPath)
os.system(
'%s --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 ' %
'%s -y -g --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 ' %
binPath)
os.system(
'%s --databases timedb1 -S 1625068810000 -o ./taosdumptest/dumptmp3 ' %
'%s -y -g --databases timedb1 -S 1625068810000 -o ./taosdumptest/dumptmp3 ' %
binPath)
os.system("%s -i ./taosdumptest/dumptmp1" % binPath)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册