JIRA: INTTEST-131
Signed-off-by: Andrew Hsia <andrew.hsia@verizonwireless.com>
Change-Id: I891e9915e36ba4da5e49f4e900b2149752363416
SSHLibrary.Write sshpass -p ${ssh_password} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${ssh_user}\@127.0.0.1 -p ${ssh_port} -s netconf
${hello}= SSHLibrary.Read_Until ${ODL_NETCONF_PROMPT}
SSHLibrary.Switch_Connection ${ssh_control}
- ${pid}= SSHLibrary.Execute_Command ps -A | grep sshpass | cut -b 1-6
+ ${pid}= SSHLibrary.Execute_Command ps -A | grep sshpass | awk '{print $1}'
BuiltIn.Set_Suite_Variable ${ssh_netconf_pid} ${pid}
SSHLibrary.Switch_Connection ${ssh_netconf}
[Return] ${hello}