ソースを参照

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@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Stefan Stanacar 10 年 前
コミット
1117d25fdf
1 ファイル変更1 行追加2 行削除
  1. 1 2
      meta/lib/oeqa/utils/qemurunner.py

+ 1 - 2
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")