提交 d0908303 编写于 作者: L liuyq-617

[TD-13276]<test>fix case error when using taosadapter

上级 92babf9b
...@@ -136,7 +136,7 @@ class TDTestCase: ...@@ -136,7 +136,7 @@ class TDTestCase:
p = subprocess.Popen(cmd,shell=True, stdout=subprocess.PIPE) p = subprocess.Popen(cmd,shell=True, stdout=subprocess.PIPE)
if p.wait() == 0: if p.wait() == 0:
val = p.stdout.read() val = p.stdout.read()
if rj['httpDbNameMandatory'] != '1' and pname in str(val): if rj['httpDbNameMandatory'] != '1' and pname not in str(val):
tdLog.info('httpDbNameMandatory data:%s == expect:0'%rj['httpDbNameMandatory']) tdLog.info('httpDbNameMandatory data:%s == expect:0'%rj['httpDbNameMandatory'])
tdLog.exit(1) tdLog.exit(1)
tdLog.info("httpDbNameMandatory by restful query data:%s == expect:1" % (rj['httpDbNameMandatory'])) tdLog.info("httpDbNameMandatory by restful query data:%s == expect:1" % (rj['httpDbNameMandatory']))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册