3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

test-runner: add timeout for waiting for process to finish

If a process hangs on exit test-runner would sit indefinitely
waiting.
This commit is contained in:
James Prestwood 2021-04-22 10:37:41 -07:00 committed by Denis Kenzior
parent 709c86086f
commit d11974c717

View File

@ -242,7 +242,7 @@ class Process:
if not wait and not check:
return
self.pid.wait()
self.pid.wait(timeout=5)
self.killed = True
self.stdout.seek(self.io_position)