From 6089efe982ed24a1b6fd7bc80b49cb80c6027e55 Mon Sep 17 00:00:00 2001 From: aguilard Date: Thu, 16 Nov 2023 14:41:56 +0000 Subject: [PATCH] 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: I66aed317ae12cb117ddd1a3cdec3396185dfdbe1 Signed-off-by: aguilard --- .../testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e769f55..e03edba 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 @@ -97,7 +97,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 -- 2.17.1