[oe-commits] Stefan Stanacar : oeqa/utils/qemurunner: search for login string in the entire boot log

git at git.openembedded.org git at git.openembedded.org
Tue Mar 11 15:15:09 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 1117d25fdfabbf1afdc7030e05efc6a32df871e3
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1117d25fdfabbf1afdc7030e05efc6a32df871e3

Author: Stefan Stanacar <stefanx.stanacar at intel.com>
Date:   Fri Mar  7 14:20:07 2014 +0000

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 <stefanx.stanacar at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/utils/qemurunner.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 337b587..f1a7e24 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")



More information about the Openembedded-commits mailing list