summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/qemurunner.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 4ce5d9c685..3ad747a503 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -197,13 +197,17 @@ class QemuRunner:
197 self.stop() 197 self.stop()
198 return False 198 return False
199 199
200 (status, output) = self.run_serial("root\n", raw=True) 200 # If we are not able to login the tests can continue
201 if re.search("root@[a-zA-Z0-9\-]+:~#", output): 201 try:
202 self.logged = True 202 (status, output) = self.run_serial("root\n", raw=True)
203 logger.info("Logged as root in serial console") 203 if re.search("root@[a-zA-Z0-9\-]+:~#", output):
204 else: 204 self.logged = True
205 logger.info("Couldn't login into serial console" 205 logger.info("Logged as root in serial console")
206 " as root using blank password") 206 else:
207 logger.info("Couldn't login into serial console"
208 " as root using blank password")
209 except:
210 logger.info("Serial console failed while trying to login")
207 211
208 else: 212 else:
209 logger.info("Qemu pid didn't appeared in %s seconds" % self.runqemutime) 213 logger.info("Qemu pid didn't appeared in %s seconds" % self.runqemutime)
@@ -321,8 +325,7 @@ class QemuRunner:
321 stopread = True 325 stopread = True
322 break 326 break
323 else: 327 else:
324 sock.close() 328 raise Exception("No data on serial console socket")
325 stopread = True
326 if data: 329 if data:
327 if raw: 330 if raw:
328 status = 1 331 status = 1