From 7bc48e3111bfe803d5d1ea3f974e3b57aa4338bc Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 1 May 2025 16:55:09 +0200 Subject: [PATCH] fix for slsreceiver killed but complaining for virtual tests with script --- tests/scripts/test_simulators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/test_simulators.py b/tests/scripts/test_simulators.py index e392274ee..c1bc4a199 100644 --- a/tests/scripts/test_simulators.py +++ b/tests/scripts/test_simulators.py @@ -32,8 +32,8 @@ def killProcess(name): if checkIfProcessRunning(name): Log(Fore.GREEN, 'killing ' + name) p = subprocess.run(['killall', name]) - #if p.returncode != 0: - # raise RuntimeException('killall failed for ' + name) + if p.returncode != 0 and checkIfProcessRunning(name): + raise RuntimeException('killall failed for ' + name) else: print('process not running : ' + name)