commit c660feadf1056d4aef8e5e56ca2a4848984d3bc9
parent 670f063a309277ccc1e2ca39c411475bb3ff5ae9
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 25 Feb 2021 14:01:06 -0800
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.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/test-runner b/tools/test-runner
@@ -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)