Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
500493b1
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
500493b1
编写于
6月 09, 2023
作者:
sangshuduo
提交者:
GitHub
6月 09, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: remove -y from taosdump test (#21661)
* fix: remove -y from taosdump test * fix: taosdumpTestNanoSupport.py
上级
d26bd988
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
15 deletion
+15
-15
tests/pytest/tools/taosdumpTest.py
tests/pytest/tools/taosdumpTest.py
+3
-3
tests/pytest/tools/taosdumpTest2.py
tests/pytest/tools/taosdumpTest2.py
+3
-3
tests/pytest/tools/taosdumpTestNanoSupport.py
tests/pytest/tools/taosdumpTestNanoSupport.py
+9
-9
未找到文件。
tests/pytest/tools/taosdumpTest.py
浏览文件 @
500493b1
...
...
@@ -92,9 +92,9 @@ class TDTestCase:
else
:
tdLog
.
info
(
"taosdump found: %s"
%
binPath
)
os
.
system
(
"%s -
y -
-databases db -o ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
"%s --databases db -o ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
"%s -
y -
-databases db1 -o ./taosdumptest/tmp2"
%
"%s --databases db1 -o ./taosdumptest/tmp2"
%
binPath
)
tdSql
.
execute
(
"drop database db"
)
...
...
@@ -172,7 +172,7 @@ class TDTestCase:
tdSql
.
query
(
"show stables"
)
tdSql
.
checkRows
(
2
)
os
.
system
(
"%s -
y -
-databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1"
%
"%s --databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1"
%
binPath
)
tdSql
.
execute
(
"drop database db12312313231231321312312312_323"
)
os
.
system
(
"%s -i ./taosdumptest/tmp1"
%
binPath
)
...
...
tests/pytest/tools/taosdumpTest2.py
浏览文件 @
500493b1
...
...
@@ -97,7 +97,7 @@ class TDTestCase:
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
2
)
os
.
system
(
"%s -i ./taosdumptest/tmp
-y
"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp"
%
binPath
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
3
)
...
...
@@ -125,13 +125,13 @@ class TDTestCase:
os
.
system
(
"rm ./taosdumptest/tmp/*.sql"
)
os
.
system
(
"rm ./taosdumptest/tmp/*.avro*"
)
os
.
system
(
"rm -rf ./taosdumptest/tmp/taosdump.*"
)
os
.
system
(
"%s -D test -o ./taosdumptest/tmp
-y
"
%
binPath
)
os
.
system
(
"%s -D test -o ./taosdumptest/tmp"
%
binPath
)
tdSql
.
execute
(
"drop database test"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
3
)
os
.
system
(
"%s -i ./taosdumptest/tmp
-y
"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp"
%
binPath
)
tdSql
.
execute
(
"use test"
)
tdSql
.
query
(
"show stables"
)
...
...
tests/pytest/tools/taosdumpTestNanoSupport.py
浏览文件 @
500493b1
...
...
@@ -134,15 +134,15 @@ class TDTestCase:
# dump all data
os
.
system
(
"%s -
y -
g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
"%s -g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
binPath
)
# dump part data with -S -E
os
.
system
(
'%s -
y -
g --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 '
%
'%s -g --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 '
%
binPath
)
os
.
system
(
'%s -
y -
g --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 '
%
'%s -g --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 '
%
binPath
)
tdSql
.
execute
(
"drop database timedb1"
)
...
...
@@ -200,14 +200,14 @@ class TDTestCase:
self
.
createdb
(
precision
=
"us"
)
os
.
system
(
"%s -
y -
g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
"%s -g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
binPath
)
os
.
system
(
'%s -
y -
g --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 '
%
'%s -g --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 '
%
binPath
)
os
.
system
(
'%s -
y -
g --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 '
%
'%s -g --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 '
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/dumptmp1"
%
binPath
)
...
...
@@ -269,14 +269,14 @@ class TDTestCase:
self
.
createdb
(
precision
=
"ms"
)
os
.
system
(
"%s -
y -
g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
"%s -g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
binPath
)
os
.
system
(
'%s -
y -
g --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 '
%
'%s -g --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 '
%
binPath
)
os
.
system
(
'%s -
y -
g --databases timedb1 -S 1625068810000 -o ./taosdumptest/dumptmp3 '
%
'%s -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录