diff options
author | Simon Glass <sjg@chromium.org> | 2024-11-12 07:13:23 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-11-13 12:01:35 -0600 |
commit | 6d0ff32650afdabd01a2a4406ed5a0e374bef1e8 (patch) | |
tree | 27c836f2ee04595dd784d003b59a926c8afb4edf /test/py/u_boot_console_base.py | |
parent | 082f3359c7e0dc7bc2f91baaac992eba18e72e0f (diff) |
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>
Diffstat (limited to 'test/py/u_boot_console_base.py')
-rw-r--r-- | test/py/u_boot_console_base.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index 42c81b2d13f..fa9cd57b04b 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -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): |