Skip to content
Snippets Groups Projects
Commit e168f49c authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

dist: testrunner: kill whole process group of spawned process

parent d7a10aa0
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment