From 8fe08787cb8f2317b9a7f1ce8155521af15e3b77 Mon Sep 17 00:00:00 2001 From: damies13 Date: Sat, 2 Nov 2024 17:32:10 +1000 Subject: [PATCH] Fix Kill If Still Running Issue #252 --- Tests/Regression/Manager/GUI_Common.robot | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tests/Regression/Manager/GUI_Common.robot b/Tests/Regression/Manager/GUI_Common.robot index 93ce43ca6..66fa0d8bf 100644 --- a/Tests/Regression/Manager/GUI_Common.robot +++ b/Tests/Regression/Manager/GUI_Common.robot @@ -255,9 +255,11 @@ Kill Agent If Still Running Kill If Still Running [Arguments] ${cmdname} - ${processes}= Evaluate psutil.process_iter() modules=psutil - FOR ${p} IN ${processes} - IF $cmdname in $p.name() + ${processes}= Evaluate list(psutil.process_iter()) modules=psutil + # Log ${processes} + FOR ${p} IN @{processes} + # Log ${p} + IF "${cmdname}" in $p.name() Evaluate $p.kill() END END