diff mbox

[U-Boot,4/8] test/py: log when tests send CTRL-C

Message ID 1453328158-23818-4-git-send-email-swarren@wwwdotorg.org
State Accepted
Commit 783cbcd3604088e9ff12b552fc209b3696c0e2b6
Delegated to: Simon Glass
Headers show

Commit Message

Stephen Warren Jan. 20, 2016, 10:15 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

Write a note to the log file when a test sends CTRL-C to U-Boot. This
makes it easier to follow what's happening in the logs, especially since
U-Boot doesn't echo the character back to its output, so there's no other
signal of what's going on.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 test/py/u_boot_console_base.py | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Jan. 22, 2016, 3:36 a.m. UTC | #1
On 20 January 2016 at 15:15, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> Write a note to the log file when a test sends CTRL-C to U-Boot. This
> makes it easier to follow what's happening in the logs, especially since
> U-Boot doesn't echo the character back to its output, so there's no other
> signal of what's going on.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>  test/py/u_boot_console_base.py | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py
index 418a26bb8e40..433bec6e9fdd 100644
--- a/test/py/u_boot_console_base.py
+++ b/test/py/u_boot_console_base.py
@@ -212,6 +212,7 @@  class ConsoleBase(object):
             Nothing.
         '''
 
+        self.log.action('Sending Ctrl-C')
         self.run_command(chr(3), wait_for_echo=False, send_nl=False)
 
     def drain_console(self):