mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
oeqa/utils/qemurunner: set timeout to 60s for run_serial
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. (From OE-Core rev: 8197d0f638a760fc03062c7a9009117d083d7ead) (From OE-Core rev: 70e942e77493cb5851a78c5592b4e13de860d931) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a384248938
commit
938ada24fb
@@ -196,7 +196,7 @@ class QemuTarget(BaseTarget):
|
|||||||
else:
|
else:
|
||||||
raise bb.build.FuncFailed("%s - FAILED to re-start qemu - check the task log and the boot log" % self.pn)
|
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)
|
return self.runner.run_serial(command, timeout=timeout)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ class QemuRunner:
|
|||||||
return True
|
return True
|
||||||
return False
|
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
|
# We assume target system have echo to get command status
|
||||||
if not raw:
|
if not raw:
|
||||||
command = "%s; echo $?\n" % command
|
command = "%s; echo $?\n" % command
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class QemuTinyRunner(QemuRunner):
|
|||||||
|
|
||||||
return self.is_alive()
|
return self.is_alive()
|
||||||
|
|
||||||
def run_serial(self, command, timeout=5):
|
def run_serial(self, command, timeout=60):
|
||||||
self.server_socket.sendall(command+'\n')
|
self.server_socket.sendall(command+'\n')
|
||||||
data = ''
|
data = ''
|
||||||
status = 0
|
status = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user