From: Ubuntu Date: Thu, 16 Nov 2023 10:52:33 +0000 (+0000) Subject: Fix stuck when executing a background command via SSH is SA02 X-Git-Tag: v12.0.8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=3f863bbd4b8d1c45bd0330664050261a77b191dd;p=osm%2Ftests.git Fix stuck when executing a background command via SSH is SA02 After upgrading the image to Ubuntu 20 in hackfest_basic_metrics_vnf the SA02 test started to fail: the "Execute Command" keyword from SSHLibrary hangs when running a "yes" command in backgroud in the VDU and test never ends. It seems that the SSH library does not handle the execution of background (run using '&') processes well. Change-Id: Ibe37b0b53c8196bb555b7d7d5f6da1365f24326d Signed-off-by: Ubuntu (cherry picked from commit f664aa79c33336b96904659c5a21bcaa2bbf87bb) --- diff --git a/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot b/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot index 76b3229..2f949c4 100644 --- a/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot +++ b/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot @@ -121,7 +121,7 @@ Get VNF VIM-based Metric Before Auto-scaling Increase VIM-based Metric To Force Auto-scaling Variable Should Exist ${privatekey} msg=SSH private key not available - Execute Remote Command Check Rc Return Output ${vnf_ip_addr} ${username} ${password} ${privatekey} for i in {1..9}; do yes > /dev/null & done + Execute Remote Command Check Rc Return Output ${vnf_ip_addr} ${username} ${password} ${privatekey} for i in {1..9}; do yes &> /dev/null & done Wait VIM-based Metric To Exceed Threshold