From 43ab5271f9b3dfde1a6f6c1d9dd924e8e0e96634 Mon Sep 17 00:00:00 2001 From: Andrew Hsia Date: Tue, 31 May 2022 16:33:15 -0400 Subject: [PATCH] unable to terminate netconf session due to process ID is truncated JIRA: INTTEST-131 Signed-off-by: Andrew Hsia Change-Id: I891e9915e36ba4da5e49f4e900b2149752363416 --- csit/suites/netconf/MDSAL/northbound.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csit/suites/netconf/MDSAL/northbound.robot b/csit/suites/netconf/MDSAL/northbound.robot index 5ebaecd01d..ec7343616d 100644 --- a/csit/suites/netconf/MDSAL/northbound.robot +++ b/csit/suites/netconf/MDSAL/northbound.robot @@ -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} -- 2.36.6