cli命令代码调整为结束换行,恢复tsg_show返回结果使用换行命令截取
This commit is contained in:
@@ -434,10 +434,13 @@ Run5
|
|||||||
Write ${command}
|
Write ${command}
|
||||||
${r} Read delay=10s
|
${r} Read delay=10s
|
||||||
Should Not Be Empty ${r}
|
Should Not Be Empty ${r}
|
||||||
#${str} Replace String ${r} ${\n} -
|
${str} Replace String ${r} ${\n} -
|
||||||
${index} Evaluate '${r}'.rindex('tsgcli >')
|
${index} Evaluate '${str}'.rindex('-')
|
||||||
${len} Convert To Integer ${index}
|
${len} Convert To Integer ${index}
|
||||||
${json} Evaluate '${r}'[0:${len}]
|
${json} Evaluate '${str}'[0:${len}]
|
||||||
|
#${index} Evaluate '${r}'.rindex('tsgcli >')
|
||||||
|
#${len} Convert To Integer ${index}
|
||||||
|
#${json} Evaluate '${r}'[0:${len}]
|
||||||
${dict} json.Loads ${json}
|
${dict} json.Loads ${json}
|
||||||
${list} Convert To List ${dict}
|
${list} Convert To List ${dict}
|
||||||
[Return] ${list}
|
[Return] ${list}
|
||||||
|
|||||||
Reference in New Issue
Block a user