commit d11974c71786ba4d210fe053b2a5203546228a9d
parent 709c86086f236e3859909680b122c879f9638a67
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 22 Apr 2021 10:37:41 -0700
test-runner: add timeout for waiting for process to finish
If a process hangs on exit test-runner would sit indefinitely
waiting.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/test-runner b/tools/test-runner
@@ -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)