Skip to contentSkip to conversation

oeqa/utils/qemurunner: search for login string in the entire boot log

PATCH New Stefan Stanacar 1 participant 1 message Mar 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 meta/lib/oeqa/utils/qemurunner.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/lib/oeqa/utils/qemurunner.py +1 -2
index 5366a63..c664d00 100644
@@ -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")
Signature · 1 line
1.8.5.3