summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-18 06:57:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-06 14:15:21 +0100
commit24e771e3540199e4da973d408f8b80b1d45f17e4 (patch)
tree3153cca8ebfe37fc049d57e3b40faa8b74eec96d
parent9dfed6a194328f4fa6fc1072541e8ddaa755f82c (diff)
downloadpoky-24e771e3540199e4da973d408f8b80b1d45f17e4.tar.gz
oeqa/qemurunner: Increase serial timeout
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. (From OE-Core rev: 1c5f304ad8d7d5deb85b3a5135556f9e38a9326b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d8b4292db741de660f756dfb766210814d587b7a) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 519aa9aa1e..77ec939ad7 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -393,7 +393,7 @@ class QemuRunner:
393 393
394 # If we are not able to login the tests can continue 394 # If we are not able to login the tests can continue
395 try: 395 try:
396 (status, output) = self.run_serial(self.boot_patterns['send_login_user'], raw=True) 396 (status, output) = self.run_serial(self.boot_patterns['send_login_user'], raw=True, timeout=120)
397 if re.search(self.boot_patterns['search_login_succeeded'], output): 397 if re.search(self.boot_patterns['search_login_succeeded'], output):
398 self.logged = True 398 self.logged = True
399 self.logger.debug("Logged as root in serial console") 399 self.logger.debug("Logged as root in serial console")