mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 20:59:42 +01:00
qemurunner.py: detect login prompt without without utf-8 conversion
In case utf-8 conversion of the serial console data is flaky due to bad characters in the stream. (From OE-Core rev: 3f4921ced1e2aae546ff7cef232eec3e214c28be) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0fb1ff0ffb
commit
23a50c8cca
@@ -480,8 +480,7 @@ class QemuRunner:
|
||||
self.log(data, extension = ".2")
|
||||
data = b''
|
||||
|
||||
decodedlog = self.decode_qemulog(bootlog)
|
||||
if self.boot_patterns['search_reached_prompt'] in decodedlog:
|
||||
if bytes(self.boot_patterns['search_reached_prompt'], 'utf-8') in bootlog:
|
||||
self.server_socket.close()
|
||||
self.server_socket = qemusock
|
||||
stopread = True
|
||||
|
||||
Reference in New Issue
Block a user