fix sometimes hanging when tests fail

The issue was when the test runner killed tests that fork off other
processes which then hung around, keeping their output pty and
thus the test runner thread alive.

Change-Id: I91068d1fc365e8a93d3bde0bd825c9b1f6a3a9b8
1 file changed