test-runner: stop/warn on processes running after test

This gives the dev some inidication their test did not clean up
correctly and running processes remain.
This commit is contained in:
James Prestwood 2021-02-25 14:01:06 -08:00 committed by Denis Kenzior
parent 670f063a30
commit c660feadf1
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ def exit_vm():
if config:
for p in config.ctx.processes:
print("Process %s still running!" % p.name)
p.kill()
p = None
config.ctx.processes = []
if config.ctx and config.ctx.results:
print_results(config.ctx.results)