]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: Add a section for closing the connection
authorSimon Glass <sjg@chromium.org>
Tue, 12 Nov 2024 14:13:23 +0000 (07:13 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Nov 2024 18:01:35 +0000 (12:01 -0600)
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>
test/py/u_boot_console_base.py

index 42c81b2d13f459b03f7b791ff2b94239a0c47e63..fa9cd57b04beb01bad07bd01bc838ca61ebb901c 100644 (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):