OSDN Git Service

tests/vm: use console_consume for netbsd
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 31 Oct 2019 08:53:05 +0000 (09:53 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 12 Nov 2019 14:32:55 +0000 (14:32 +0000)
Use new helper to read all pending console output,
not just a single char.  Unblocks installer boot.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20191031085306.28888-4-kraxel@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
tests/vm/netbsd

index 445c34d..0083f7f 100755 (executable)
@@ -93,7 +93,7 @@ class NetBSDVM(basevm.BaseVM):
         for char in list("5consdev com0\n"):
             time.sleep(0.2)
             self.console_send(char)
-            self.console_wait("")
+            self.console_consume()
         self.console_wait_send("> ", "boot\n")
 
         self.console_wait_send("Terminal type",            "xterm\n")