diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-11-05 19:38:08 +0100 |
---|---|---|
committer | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-11-07 11:51:16 +0000 |
commit | 3f8c87132d63c14f1ba90d7db6cf2a2aba0f8cb9 (patch) | |
tree | ec6885017da6d0779bd58a92379c5715432f3e84 /build-data/platforms | |
parent | cf4c2102d9dc3ccc939cca1137b24a75341f1b0c (diff) |
tests: make threads in punt tests join when finished
The 42693521f6046997133c8f63bcfc9d615d96f69d added the timeout
to the child process join + print the name of the offending
child process.
Upon testing the issue furher, appeared the offenders were
always the same - punt tests. The processes running them
were stuck trying to acquire lock, even if all
the user-accessible execution has finished. Some searching
revealed that one needs to tread carefully when dealing
with Thread and Multiprocessing at the same time.
punt tests used threads but did not call thread.join. Somehow
it worked in some cases but not the others. This fix makes
the threads exit cleanly - which also makes the timeouts
waiting for the process to join disappear.
Type: test
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I05d99bb48a9987544bbfe45118755c09d7867aa0
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'build-data/platforms')
0 files changed, 0 insertions, 0 deletions