From: Mariano Lopez Date: Thu, 5 Nov 2015 09:08:58 +0000 (+0000) Subject: qemurunner: Remove the timeout in run_serial X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1a97475b4e6c7066a3161cb9cec1d4b27644518;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git qemurunner: Remove the timeout in run_serial Sometmes when there is high load in the server the commands executed in the target take a lot of time to complete and this lead to incorrect dump files or empty files. This is caused because run_serial has a timeout of five seconds when running the commands in the target. This change removes the timeout and just keep reading the socket until it finds the prompt from the target or when the socket is not ready to be read. [YOCTO #8510] Signed-off-by: Mariano Lopez Signed-off-by: Ross Burton --- diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index abbafd51e49..e1c8ea10858 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -366,23 +366,25 @@ class QemuRunner: # We assume target system have echo to get command status if not raw: command = "%s; echo $?\n" % command - self.server_socket.sendall(command) + data = '' status = 0 - stopread = False - endtime = time.time()+5 - while time.time()