tsg_show返回恢复换行,代码恢复为使用换行截取命令结果
This commit is contained in:
@@ -434,10 +434,12 @@ 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 '${str}'.rindex('-')
|
${index} Evaluate '${str}'.rindex('-')
|
||||||
${len} Convert To Integer ${index}
|
${len} Convert To Integer ${index}
|
||||||
${json} Evaluate '${str}'[0:${len}]
|
${json} Evaluate '${str}'[0:${len}]
|
||||||
|
#cli命令结果返回结束为换行使用下面截取
|
||||||
#${index} Evaluate '${r}'.rindex('tsgcli >')
|
#${index} Evaluate '${r}'.rindex('tsgcli >')
|
||||||
#${len} Convert To Integer ${index}
|
#${len} Convert To Integer ${index}
|
||||||
#${json} Evaluate '${r}'[0:${len}]
|
#${json} Evaluate '${r}'[0:${len}]
|
||||||
|
|||||||
Reference in New Issue
Block a user