Converting boot log to utf-8 strings may drop content breaking the prompt detection resulting in timeouts.
Signed-off-by: Mikko Rapeli <[email protected]> --- meta/lib/oeqa/utils/qemurunner.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index df290fc091..27166282ea 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -482,9 +482,7 @@ class QemuRunner: data = b'' - decodedlog = self.decode_qemulog(bootlog) - self.logger.debug('Searching in %s chars' % len(decodedlog)) - 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 -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#188631): https://lists.openembedded.org/g/openembedded-core/message/188631 Mute This Topic: https://lists.openembedded.org/mt/101731195/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
