我正在编写一个机器人脚本来在DUT上运行命令,从而产生巨大的输出。当我在DUT上运行命令时手动,它几乎不需要大约20秒,我尝试保持不同的超时值但是dint工作。我试过Read Until Prompt
,但没有运气。
这是一段代码:
Write abc
# Set Client Configuration timeout=30 seconds
Set Client Configuration prompt=abc)
Read Until Prompt
当我使用-L TRACE
选项运行它时,我看到以下错误:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SSHLibrary/library.py", line 1161, in read_until_prompt
return self._read_and_log(loglevel, self.current.read_until_prompt)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SSHLibrary/library.py", line 1214, in _read_and_log
raise RuntimeError(e)
如果我遗失任何东西,有人可以指导我吗?