3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

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

View File

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