]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/target/ssh: Ensure EAGAIN doesn't truncate output
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jul 2023 14:17:32 +0000 (15:17 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 22 Aug 2023 17:07:13 +0000 (07:07 -1000)
commit4c02f7407d7afaefe1bc72aea25087b3f2271ac2
tree6bc71dca8808ce05982180faef78459bd75bc487
parent8d0c669d3d04cf5bc645978afb22ba6c3f3d53e6
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a8920c105725431e989cceb616bd04eaa52127ec)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/core/target/ssh.py