Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5868f345
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
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看板
提交
5868f345
编写于
5月 15, 2020
作者:
S
Shuduo Sang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reduce python test case output.
上级
ce944ebb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
15 deletion
+14
-15
tests/pytest/insert/float.py
tests/pytest/insert/float.py
+4
-4
tests/pytest/insert/int.py
tests/pytest/insert/int.py
+5
-5
tests/pytest/test.py
tests/pytest/test.py
+2
-1
tests/pytest/util/cases.py
tests/pytest/util/cases.py
+1
-3
tests/pytest/util/dnodes.py
tests/pytest/util/dnodes.py
+2
-2
未找到文件。
tests/pytest/insert/float.py
浏览文件 @
5868f345
...
...
@@ -43,7 +43,7 @@ class TDTestCase:
"This test failed: insert wrong data error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"insert wrong data error catched"
)
tdLog
.
info
(
"insert wrong data error catched"
)
cmd
=
'select * from tb order by ts desc'
tdLog
.
info
(
cmd
)
...
...
@@ -82,7 +82,7 @@ class TDTestCase:
insert wrong data error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"insert wrong data error catched"
)
tdLog
.
info
(
"insert wrong data error catched"
)
cmd
=
"insert into tb values (now+4a, 0)"
tdLog
.
info
(
cmd
)
...
...
@@ -103,7 +103,7 @@ class TDTestCase:
"This test failed: insert wrong data error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"insert wrong data error catched"
)
tdLog
.
info
(
"insert wrong data error catched"
)
cmd
=
"insert into tb values (now+5a, 2)"
tdLog
.
info
(
cmd
)
...
...
@@ -124,7 +124,7 @@ class TDTestCase:
"This test failed: insert wrong data error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"insert wrong data error catched"
)
tdLog
.
info
(
"insert wrong data error catched"
)
cmd
=
"insert into tb values (now+6a, 2)"
tdLog
.
info
(
cmd
)
...
...
tests/pytest/insert/int.py
浏览文件 @
5868f345
...
...
@@ -47,7 +47,7 @@ class TDTestCase:
"This test failed: INT data overflow error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"INT data overflow error catched"
)
tdLog
.
info
(
"INT data overflow error catched"
)
cmd
=
'insert into tb values (now+1m, NULL)'
tdLog
.
info
(
cmd
)
...
...
@@ -76,7 +76,7 @@ class TDTestCase:
"This test failed: INT data overflow error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"INT data overflow error catched"
)
tdLog
.
info
(
"INT data overflow error catched"
)
cmd
=
'insert into tb values (now+3m, NULL)'
tdLog
.
info
(
cmd
)
...
...
@@ -96,7 +96,7 @@ class TDTestCase:
"This test failed: insert wrong data error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"insert wrong data error catched"
)
tdLog
.
info
(
"insert wrong data error catched"
)
cmd
=
'insert into tb values (now+4m, 0)'
tdLog
.
info
(
cmd
)
...
...
@@ -116,7 +116,7 @@ class TDTestCase:
"This test failed: insert wrong data error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"insert wrong data error catched"
)
tdLog
.
info
(
"insert wrong data error catched"
)
cmd
=
'insert into tb values (now+5m, 2)'
tdLog
.
info
(
cmd
)
...
...
@@ -135,7 +135,7 @@ class TDTestCase:
"This test failed: insert wrong data error _not_ catched"
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
notice
(
"insert wrong data error catched"
)
tdLog
.
info
(
"insert wrong data error catched"
)
cmd
=
'insert into tb values (now+6m, 2)'
tdLog
.
info
(
cmd
)
...
...
tests/pytest/test.py
浏览文件 @
5868f345
...
...
@@ -79,7 +79,8 @@ if __name__ == "__main__":
time
.
sleep
(
1
)
processID
=
subprocess
.
check_output
(
psCmd
,
shell
=
True
)
tdLog
.
exit
(
'stop All dnodes'
)
tdLog
.
info
(
'stop All dnodes'
)
sys
.
exit
(
0
)
tdDnodes
.
init
(
deployPath
)
tdDnodes
.
setTestCluster
(
testCluster
)
...
...
tests/pytest/util/cases.py
浏览文件 @
5868f345
...
...
@@ -57,7 +57,7 @@ class TDCases:
runNum
+=
1
continue
tdLog
.
notice
(
"total %d Linux test case(s) executed"
%
(
runNum
))
tdLog
.
info
(
"total %d Linux test case(s) executed"
%
(
runNum
))
def
runOneLinux
(
self
,
conn
,
fileName
):
testModule
=
self
.
__dynamicLoadModule
(
fileName
)
...
...
@@ -76,8 +76,6 @@ class TDCases:
runNum
+=
1
continue
tdLog
.
success
(
"total %d Linux test case(s) executed"
%
(
runNum
))
def
runAllWindows
(
self
,
conn
):
# TODO: load all Windows cases here
runNum
=
0
...
...
tests/pytest/util/dnodes.py
浏览文件 @
5868f345
...
...
@@ -202,7 +202,7 @@ class TDDnode:
if
(
binPath
==
""
):
tdLog
.
exit
(
"taosd not found!s"
)
else
:
tdLog
.
notice
(
"taosd found in %s"
%
rootRealPath
)
tdLog
.
info
(
"taosd found in %s"
%
rootRealPath
)
if
self
.
deployed
==
0
:
tdLog
.
exit
(
"dnode:%d is not deployed"
%
(
self
.
index
))
...
...
@@ -408,7 +408,7 @@ class TDDnodes:
tdLog
.
exit
(
"index:%d should on a scale of [1, 10]"
%
(
index
))
def
stopAll
(
self
):
tdLog
.
debug
(
"stop all dnodes"
)
tdLog
.
info
(
"stop all dnodes"
)
for
i
in
range
(
len
(
self
.
dnodes
)):
self
.
dnodes
[
i
].
stop
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录