]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/utils/qemurunner: set timeout to 60s for run_serial rbt/time
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 3 Jan 2019 08:09:05 +0000 (16:09 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Thu, 3 Jan 2019 08:12:32 +0000 (16:12 +0800)
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.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/lib/oeqa/targetcontrol.py
meta/lib/oeqa/utils/qemurunner.py
meta/lib/oeqa/utils/qemutinyrunner.py

index 59a9c35a096035e92c82d9dcc2a90e99c4f56dbc..02ea1c037cad33e612175be3e9ff363c349556f0 100644 (file)
@@ -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)
 
 
index cce95e13f4979bb827c4ef87d0f72b5310d31bb0..7ef506b60a2c922c2fddaf82ea7404083e67387e 100644 (file)
@@ -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
index 63b5d1648b3c6af10e8faebce4abe054293b7187..5aa99d0686df120e192688b979985a07d0f51fae 100644 (file)
@@ -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