mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-05 20:30:03 +02:00
fix for slsreceiver killed but complaining for virtual tests with script
This commit is contained in:
parent
53b90d92d7
commit
7bc48e3111
@ -32,8 +32,8 @@ def killProcess(name):
|
|||||||
if checkIfProcessRunning(name):
|
if checkIfProcessRunning(name):
|
||||||
Log(Fore.GREEN, 'killing ' + name)
|
Log(Fore.GREEN, 'killing ' + name)
|
||||||
p = subprocess.run(['killall', name])
|
p = subprocess.run(['killall', name])
|
||||||
#if p.returncode != 0:
|
if p.returncode != 0 and checkIfProcessRunning(name):
|
||||||
# raise RuntimeException('killall failed for ' + name)
|
raise RuntimeException('killall failed for ' + name)
|
||||||
else:
|
else:
|
||||||
print('process not running : ' + name)
|
print('process not running : ' + name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user