Fix test runner returncode.

The recent refactor to the test runner architecture lost the runner ability to return the number of failures as process return code. This made the buildbots report all test runs as successes, since it derives the success/fail status from the process return code.

This commit reimplements the previous behavior so that buildbot reports success and failure properly.