]> code.ossystems Code Review - openembedded-core.git/commit
qemurunner: configurable timeout for run_serial()
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 24 Mar 2017 21:46:16 +0000 (22:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Mar 2017 12:17:01 +0000 (13:17 +0100)
commitaccf0362f964cc9d6330b6e52e83d748d890521f
tree98e08d4a0956f378c35c0462e0a2aec1f29cb043
parent680940250c9a1c7b43229c5e4f4fed5cc3e31033
qemurunner: configurable timeout for run_serial()

Some commands might need to run longer than the default timeout of
five seconds. If that occurred, run_serial() returned with a status
code of zero (sic!) and no other indication of what went wrong.

Now the timeout is configurable (with five still the default) and
an explicit warning ("<<< run_serial(): command timed out after 5 seconds without output >>>")
gets appended at the end of the data returned to the caller.

While at it, the logic for checking for the timeout was updated a bit
because both implementations could overshoot the timeout when entering
select() right before the final deadline.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/targetcontrol.py
meta/lib/oeqa/utils/qemurunner.py
meta/lib/oeqa/utils/qemutinyrunner.py