From: Dave Wallace Date: Thu, 6 May 2021 19:59:59 +0000 (-0400) Subject: tests: fix race condition in punt tests X-Git-Tag: v21.10-rc0~110 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=f4d338f0b44e28d9ad5b446422caf15fd871c8cd;p=vpp.git tests: fix race condition in punt tests Type: fix Signed-off-by: Dave Wallace Change-Id: I6cb13e044bbb966cbb61802094e96220d3a0c951 --- diff --git a/test/test_punt.py b/test/test_punt.py old mode 100644 new mode 100755 index c6d6dbc5140..bc2196eee1f --- a/test/test_punt.py +++ b/test/test_punt.py @@ -83,6 +83,7 @@ class serverSocketThread(threading.Thread): def close(self): self.sock.close() self.keep_running = False + threading.Thread.join(self) return self.rx_pkts @@ -131,7 +132,6 @@ class TestPuntSocket(VppTestCase): rx_pkts = [] for thread in self.sock_servers: rx_pkts += thread.close() - thread.join() return rx_pkts def verify_port(self, pr, vpr):