[INTTEST-131] unable to terminate netconf session due to process ID is truncated to 4 digits Created: 31/May/22  Updated: 31/May/22  Resolved: 31/May/22

Status: Resolved
Project: integration-test
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Andrew Hsia Assignee: Andrew Hsia
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In Netconf MDSAL test suites, the aborting simulation test will try to terminate sshpass process to simulate the abort netconf session.

the current method in robot test to obtain the process ID of sshpass is 

${pid}=    SSHLibrary.Execute_Command    ps -A | grep sshpass | cut -b 1-6

It works if process ID is 4 digit or less, but failed to terminate sshpass if process ID is 5 digit

$ ps -A | grep sshpass
  13090 pts/2    00:00:00 sshpass
$ ps -A | grep sshpass | cut -b 1-6
  1309



 Comments   
Comment by Andrew Hsia [ 31/May/22 ]

sanbox validation https://jenkins.opendaylight.org/sandbox/view/All/job/netconf-csit-1node-userfeatures-rfc8040-all-master/3/

Generated at Wed Feb 07 20:04:39 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.