]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - test/py/u_boot_console_exec_attach.py
test/py: HTML awesome!
[karo-tx-uboot.git] / test / py / u_boot_console_exec_attach.py
index 19520cb3b9072eceac7cb2f47385b9b9a8441d31..1be27c1930794d244f34c1f745653a4bdfd459f9 100644 (file)
@@ -35,11 +35,13 @@ class ConsoleExecAttach(ConsoleBase):
         # HW flow control would mean this could be infinite.
         super(ConsoleExecAttach, self).__init__(log, config, max_fifo_fill=16)
 
-        self.log.action('Flashing U-Boot')
-        cmd = ['u-boot-test-flash', config.board_type, config.board_identity]
-        runner = self.log.get_runner(cmd[0], sys.stdout)
-        runner.run(cmd)
-        runner.close()
+        with self.log.section('flash'):
+            self.log.action('Flashing U-Boot')
+            cmd = ['u-boot-test-flash', config.board_type, config.board_identity]
+            runner = self.log.get_runner(cmd[0], sys.stdout)
+            runner.run(cmd)
+            runner.close()
+            self.log.status_pass('OK')
 
     def get_spawn(self):
         """Connect to a fresh U-Boot instance.