summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-27 15:17:32 +0100
committerSteve Sakoman <steve@sakoman.com>2023-09-15 03:47:11 -1000
commit02356ecdca0ccd0830cf9868671b6510170edca4 (patch)
tree01f12ce9695638261f7e8bb283a34c9cde4a5dcb /meta/lib/oeqa
parent0cbec779f591b5a2aaae5e9b2cf2f0f67e5c4acb (diff)
downloadpoky-02356ecdca0ccd0830cf9868671b6510170edca4.tar.gz
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: 605d832e86f249100adaf3761b4e1701401d0b76) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a8920c105725431e989cceb616bd04eaa52127ec) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/core/target/ssh.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py
index af4a67f266..832b6216f6 100644
--- a/meta/lib/oeqa/core/target/ssh.py
+++ b/meta/lib/oeqa/core/target/ssh.py
@@ -226,6 +226,9 @@ def SSHCall(command, logger, timeout=None, **opts):
226 endtime = time.time() + timeout 226 endtime = time.time() + timeout
227 except InterruptedError: 227 except InterruptedError:
228 continue 228 continue
229 except BlockingIOError:
230 logger.debug('BlockingIOError')
231 continue
229 232
230 # process hasn't returned yet 233 # process hasn't returned yet
231 if not eof: 234 if not eof: