Add test timeouts to the mojo apptest runner.
commit092b8b025ed32f3f6492746943030923a0937ae1
authormsw <msw@chromium.org>
Wed, 17 Jun 2015 23:06:22 +0000 (17 16:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 23:07:06 +0000 (17 23:07 +0000)
tree180a636024ff4adf252be0d389d4e34def9b90f6
parent2a03d93d3a7bfb376417de2c0070dd3de629da12
Add test timeouts to the mojo apptest runner.

Use Python multiprocessing to run tests in processes.
Terminate the process if it exceeds a timeout duration.
I tested Linux/Android (ToT and with RunLoops spun to fail).
TODO: Refine timeouts (now 10s like TestTimeouts::action*).

BUG=493535
R=sky@chromium.org
TEST=No more apptests fixtures hanging beyond 10s.

Review URL: https://codereview.chromium.org/1189013002

Cr-Commit-Position: refs/heads/master@{#334952}
mojo/tools/mopy/gtest.py