test: Add a section for closing the connection

This can take a while and involve multiple steps (e.g. turning the board
back off). Add a section for it and show the output.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass 2024-11-12 07:13:23 -07:00 committed by Tom Rini
parent 082f3359c7
commit 6d0ff32650

View file

@ -183,7 +183,10 @@ class ConsoleBase(object):
"""
if self.p:
self.p.close()
self.log.start_section('Stopping U-Boot')
close_type = self.p.close()
self.log.info(f'Close type: {close_type}')
self.log.end_section('Stopping U-Boot')
self.logstream.close()
def set_lab_mode(self):