From: Stefan Stanacar Date: Fri, 7 Mar 2014 14:20:07 +0000 (+0000) Subject: oeqa/utils/qemurunner: search for login string in the entire boot log X-Git-Tag: 2015-4~3372 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1117d25fdfabbf1afdc7030e05efc6a32df871e3;p=openembedded-core.git oeqa/utils/qemurunner: search for login string in the entire boot log If some service is to spammy we might miss the login, so search in the entire log instead of just the last few lines. Use qemu in regex too (to avoid a login string from some service). Signed-off-by: Stefan Stanacar Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index 337b5874b2..f1a7e24ab7 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -133,8 +133,7 @@ class QemuRunner: if data: self.log(data) self.bootlog += data - lastlines = "\n".join(self.bootlog.splitlines()[-2:]) - if re.search("login:", lastlines): + if re.search("qemu.* login:", self.bootlog): stopread = True reachedlogin = True bb.note("Reached login banner")