提交 a976d3a4 编写于 作者: A Alex Duan

fix(case): pexpect module expect return index

上级 0a219ec8
......@@ -63,7 +63,7 @@ def taos_command (buildPath, key, value, expectString, cfgDir, sqlString='', key
if len(sqlString) != 0:
child.sendline (sqlString)
w = child.expect(["Query OK", "Create OK", "Insert OK", "Drop OK", taosExpect.TIMEOUT, taosExpect.EOF], timeout=10)
if w == 0:
if w == 0 or w == 1 or w == 2:
return "TAOS_OK"
else:
print(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册