From: Andrew Yourtchenko Date: Tue, 5 Nov 2019 18:38:08 +0000 (+0100) Subject: tests: make threads in punt tests join when finished X-Git-Tag: v20.05-rc0~436 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=3f8c87132d63c14f1ba90d7db6cf2a2aba0f8cb9;hp=3f8c87132d63c14f1ba90d7db6cf2a2aba0f8cb9;p=vpp.git 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 Change-Id: I05d99bb48a9987544bbfe45118755c09d7867aa0 Signed-off-by: Andrew Yourtchenko ---