From 561c64e7f85b497bdfa931173069f2c12c2538d3 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 11 Sep 2020 11:11:30 -0700 Subject: [PATCH] test-runner: print results even if test run is canceled --- tools/test-runner | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/test-runner b/tools/test-runner index d7f831ac..a71b9ef6 100755 --- a/tools/test-runner +++ b/tools/test-runner @@ -58,6 +58,9 @@ def exit_vm(): for p in config.ctx.processes: print("Process %s still running!" % p.name) + if config.ctx and config.ctx.results: + print_results(config.ctx.results) + os.sync() RB_AUTOBOOT = 0x01234567 @@ -985,8 +988,6 @@ def run_auto_tests(ctx, args): if ctx.args.log: Process(["dmesg"], ctx=ctx, wait=True) - print_results(ctx.results) - def run_unit_tests(ctx, args): os.chdir(args.testhome + '/unit') units = build_unit_list(args)