mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
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:
parent
082f3359c7
commit
6d0ff32650
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue