<test>fix some error in python test frame
This commit is contained in:
parent
c906dd5c1e
commit
a9da437d02
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue