summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/target
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-27 15:17:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-29 08:34:35 +0100
commitaff6bc32495cde1085518516b403e471cd4f8b9e (patch)
treeefa99d6d8a8bd491fa21d3974adec657e5ac23f9 /meta/lib/oeqa/core/target
parentafed7e8747ef76110d7076eb9a0130cb78bcb7cc (diff)
downloadpoky-aff6bc32495cde1085518516b403e471cd4f8b9e.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: a8920c105725431e989cceb616bd04eaa52127ec) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/target')
-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 e650302052..243e45dd99 100644
--- a/meta/lib/oeqa/core/target/ssh.py
+++ b/meta/lib/oeqa/core/target/ssh.py
@@ -253,6 +253,9 @@ def SSHCall(command, logger, timeout=None, **opts):
253 except InterruptedError: 253 except InterruptedError:
254 logger.debug('InterruptedError') 254 logger.debug('InterruptedError')
255 continue 255 continue
256 except BlockingIOError:
257 logger.debug('BlockingIOError')
258 continue
256 259
257 process.stdout.close() 260 process.stdout.close()
258 261