dist: testrunner: kill whole process group of spawned process
This commit is contained in:
parent
d7a10aa030
commit
e168f49c86
2
dist/tools/testrunner/testrunner.py
vendored
2
dist/tools/testrunner/testrunner.py
vendored
@ -29,7 +29,7 @@ def run(testfunc, timeout=5, echo=True):
|
||||
return 1
|
||||
finally:
|
||||
print("")
|
||||
child.kill(signal.SIGKILL)
|
||||
os.killpg(os.getpgid(child.pid), signal.SIGKILL)
|
||||
child.close()
|
||||
|
||||
return 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user