Introduce a dynamic process pool for the local test driver
authormachenbach@chromium.org <machenbach@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 May 2014 13:30:57 +0000 (13:30 +0000)
committermachenbach@chromium.org <machenbach@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 May 2014 13:30:57 +0000 (13:30 +0000)
commitfc437f400763867ac9a9e1c46c92f94512f2fb53
tree2fa10872bf5454a35062dd6448c86c0bf50a47a4
parent56c0eeb5e422b1a3c365b130c70509a27a8ac284
Introduce a dynamic process pool for the local test driver

The new process pool allows adding jobs after testing has been started. It will also allow to restructure building the job queue (in a follow up CL), so that testing can start instantly while the queue is being built.

Also attempts to clean up the keyboard-interrupt logic. Idea: Only catch keyboard interrupt once per process at the outermost level. Use proper "finally" clauses to clean up everywhere where a keyboard interrupt might occur. Never turn named exceptions into none-exceptions using anonymous "raise".

TEST=python -m unittest pool_unittest
R=jkummerow@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21310 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
tools/run-tests.py
tools/testrunner/local/commands.py
tools/testrunner/local/execution.py
tools/testrunner/local/pool.py [new file with mode: 0644]
tools/testrunner/local/pool_unittest.py [new file with mode: 0644]