unable to terminate netconf session due to process ID is truncated 94/101394/1
authorAndrew Hsia <andrew.hsia@verizonwireless.com>
Tue, 31 May 2022 20:33:15 +0000 (16:33 -0400)
committerAndrew Hsia <andrew.hsia@verizonwireless.com>
Tue, 31 May 2022 20:33:15 +0000 (16:33 -0400)
JIRA: INTTEST-131

Signed-off-by: Andrew Hsia <andrew.hsia@verizonwireless.com>
Change-Id: I891e9915e36ba4da5e49f4e900b2149752363416

csit/suites/netconf/MDSAL/northbound.robot

index 5ebaecd01d8e7fb5b72bfbdb8c0ccb1c2a5d2f3a..ec7343616dec480927e8a45b6142f36a02a32f61 100644 (file)
@@ -356,7 +356,7 @@ Reopen_ODL_Netconf_Connection
     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}