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

<test>fix some error in python test frame

上级 c906dd5c
......@@ -194,11 +194,12 @@ class TDSql:
pstate = 0
pl = psutil.pids()
for pid in pl:
if psutil.Process(pid).name == 'taosd':
if psutil.Process(pid).name() == 'taosd':
pstate = 1
break
if pstate:
tdLog.sleep(5)
if pstate == state :break
if state or pstate:
tdLog.sleep(1)
continue
pstate = 0
break
......@@ -219,9 +220,9 @@ class TDSql:
tdLog.info("dir: %s is empty, expect: empty" %dir)
else:
if state :
tdLog.info("dir: %s is empty, expect: not empty" %dir)
tdLog.info("dir: %s is not empty, expect: not empty" %dir)
else:
tdLog.exit("dir: %s is empty, expect: empty" %dir)
tdLog.exit("dir: %s is not empty, expect: empty" %dir)
else:
tdLog.exit("dir: %s doesn't exist" %dir)
def createDir(self, dir):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册