]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
test/py: use space to interrupt autoboot
authorStephen Warren <swarren@wwwdotorg.org>
Tue, 16 Feb 2016 00:39:38 +0000 (17:39 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 26 Feb 2016 13:42:11 +0000 (08:42 -0500)
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 <swarren@wwwdotorg.org>
Acked-by: Simon Glass <sjg@chromium.org>
test/py/u_boot_console_base.py

index 318e28824cc29ac381fad826810780853ec9d012..f7434363fbcb09d276fabcbf71ded005a610b82a 100644 (file)
@@ -326,7 +326,7 @@ class ConsoleBase(object):
                 if m == 0:
                     break
                 if m == 1:
-                    self.p.send(chr(3)) # CTRL-C
+                    self.p.send(' ')
                     continue
                 raise Exception('Bad pattern found on console: ' +
                                 self.bad_pattern_ids[m - 2])