]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/qemurunner: Increase serial timeout
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Sep 2020 05:57:10 +0000 (06:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Sep 2020 11:48:07 +0000 (12:48 +0100)
Increase the serial login timeout from 60 to 120s. This seems like a
long time, however for a qemumips image with systemd+PAM and openssh,
(e.g. core-image-sato-sdk + DISTRO=poky-altcfg), the getty connects
to systemd's pam module which waits on logind and 45s for all this
to happen at the same time as things like ssh key generation happens
is not unknown.

Increase the timeout to match the longer times we know these things
can take in the worst case scenarios since we're tired of intermittent
issues related to the serial login affecting the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py

index 519aa9aa1e512b2880835a291fa85617dbc55b34..77ec939ad7253cb6d4bf0bbf539a88b8af91dc45 100644 (file)
@@ -393,7 +393,7 @@ class QemuRunner:
 
         # If we are not able to login the tests can continue
         try:
-            (status, output) = self.run_serial(self.boot_patterns['send_login_user'], raw=True)
+            (status, output) = self.run_serial(self.boot_patterns['send_login_user'], raw=True, timeout=120)
             if re.search(self.boot_patterns['search_login_succeeded'], output):
                 self.logged = True
                 self.logger.debug("Logged as root in serial console")