fix for slsreceiver killed but complaining for virtual tests with script
Some checks failed
Build on RHEL8 / build (push) Failing after 3m0s
Build on RHEL9 / build (push) Successful in 4m58s

This commit is contained in:
maliakal_d 2025-05-01 16:55:09 +02:00
parent 53b90d92d7
commit 7bc48e3111

View File

@ -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)