Skip to content
Commit 9b251dca authored by Richard Purdie's avatar Richard Purdie
Browse files

oeqa/utils/command: Improve stdin handling in runCmd



Occasionally we've been seeing leftover threads from runCmd. The stdin test
assumes we clean up all threads but the code assumes that the daemonic thread
can be left behind.

The issue can be reproduced by adding a time.sleep(10) to the end of
writeThread() which will mean it stays resident past the end of the command.

We may as well add it to the threads list and clean it up properly,
hopefully removing the race in the tests from the autobuilder.

[YOCTO #13055]

Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent d15d0177
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment