Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wr_arp] add timeout to thread join #2986

Merged
merged 2 commits into from
Feb 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ansible/roles/test/files/ptftests/wr_arp.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ def runTest(self):

self.assertTrue(time.time() < self.stop_at, "warm-reboot took to long")

test_port_thr.join()
test_port_thr.join(timeout=self.how_long)
if test_port_thr.isAlive():
self.log("Timed out wating for warm reboot")
yxieca marked this conversation as resolved.
Show resolved Hide resolved
self.req_dut('quit')
self.assertTrue(False, "Timed out waiting for warm reboot")

uptime_after = self.req_dut('uptime')
if uptime_after.startswith('error'):
Expand Down