mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
oeqa/target/ssh: Ensure EAGAIN doesn't truncate output
We have a suspicion that the read() call may return EAGAIN on the non-blocking fd and this may truncate test output leading to some of our intermittent failures. Tweak the code to avoid this potential issue. (From OE-Core rev: a8920c105725431e989cceb616bd04eaa52127ec) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -253,6 +253,9 @@ def SSHCall(command, logger, timeout=None, **opts):
|
|||||||
except InterruptedError:
|
except InterruptedError:
|
||||||
logger.debug('InterruptedError')
|
logger.debug('InterruptedError')
|
||||||
continue
|
continue
|
||||||
|
except BlockingIOError:
|
||||||
|
logger.debug('BlockingIOError')
|
||||||
|
continue
|
||||||
|
|
||||||
process.stdout.close()
|
process.stdout.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user