path: root/test
diff options
authorStephen Warren <>2016-02-15 17:39:38 -0700
committerTom Rini <>2016-02-26 08:42:11 -0500
commit38831ca3be7dee0f1b744304137d623b7c7b94bf (patch)
tree1cfceb33c816df5a4f87325c45eb8288c55d7dce /test
parent1f60d7c6e983fbbd1da66a2437b7e9f09e36c7ac (diff)
test/py: use space to interrupt autoboot
Sending CTRL-C to QEMU's stdin aborts the process, even if stdin is being used as a serial port (at least in the raspi2 machine with "qemu -serial stdin"). Avoid sending CTRL-C to U-Boot to prevent it exiting. I'd originally used CTRL-C to make sure that if the character used to abort autoboot ended up being treated as part of a command as well, it'd abort command entry and return the prompt to a known state. However, this is not needed, since aborting the autoboot eats the character used to do that. Signed-off-by: Stephen Warren <> Acked-by: Simon Glass <>
Diffstat (limited to 'test')
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/ b/test/py/
index 318e28824c..f7434363fb 100644
--- a/test/py/
+++ b/test/py/
@@ -326,7 +326,7 @@ class ConsoleBase(object):
if m == 0:
if m == 1:
- self.p.send(chr(3)) # CTRL-C
+ self.p.send(' ')
raise Exception('Bad pattern found on console: ' +
self.bad_pattern_ids[m - 2])
OpenPOWER on IntegriCloud