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
1 changed files with 1 additions and 1 deletions

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)