Skip to contentSkip to conversation

oeqa/utils/qemurunner: set timeout to 60s for run_serial

PATCH New Robert Yang 1 participant 2 messages Jan 3, 2019

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 oeqa/utils/qemurunner: set timeout to 60s for run_serial

In reply to Robert Yang

The 5s timeout for non-kvm is too short, especially when the load is high, which leads to unexpected errors, so set timeout to 60s by default.

---
 meta/lib/oeqa/targetcontrol.py        | 2 +-
 meta/lib/oeqa/utils/qemurunner.py     | 2 +-
 meta/lib/oeqa/utils/qemutinyrunner.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/lib/oeqa/targetcontrol.py +1 -1
index 59a9c35..02ea1c0 100644
@@ -196,7 +196,7 @@ class QemuTarget(BaseTarget):
         else:
             raise bb.build.FuncFailed("%s - FAILED to re-start qemu - check the task log and the boot log" % self.pn)
 
-    def run_serial(self, command, timeout=5):
+    def run_serial(self, command, timeout=60):
         return self.runner.run_serial(command, timeout=timeout)
 
 
meta/lib/oeqa/utils/qemurunner.py +1 -1
index cce95e1..7ef506b 100644
@@ -430,7 +430,7 @@ class QemuRunner:
                 return True
         return False
 
-    def run_serial(self, command, raw=False, timeout=5):
+    def run_serial(self, command, raw=False, timeout=60):
         # We assume target system have echo to get command status
         if not raw:
             command = "%s; echo $?\n" % command
meta/lib/oeqa/utils/qemutinyrunner.py +1 -1
index 63b5d16..5aa99d0 100644
@@ -108,7 +108,7 @@ class QemuTinyRunner(QemuRunner):
 
         return self.is_alive()
 
-    def run_serial(self, command, timeout=5):
+    def run_serial(self, command, timeout=60):
         self.server_socket.sendall(command+'\n')
         data = ''
         status = 0
Signature · 1 line
2.7.4
#0 lore raw

cover oeqa/utils/qemurunner: set timeout to 60s for run_serial

The following changes since commit caa776bdcf8ea34c857f45970370bf771075f4bc:

testimage.bbclass: remove boot parameter systemd.log_target (2018-12-27 22:50:01 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/time
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/time

Robert Yang (1):
oeqa/utils/qemurunner: set timeout to 60s for run_serial

 meta/lib/oeqa/targetcontrol.py        | 2 +-
 meta/lib/oeqa/utils/qemurunner.py     | 2 +-
 meta/lib/oeqa/utils/qemutinyrunner.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4