v8/tools/testrunner
Michael Achenbach 4a2d9b1b20 [test] Abort testing immediately on interrupt and sigterm
This is a partial revert of:
https://crrev.com/c/890938 and https://crrev.com/c/893982

Before this CL, the test runner blocked on ongoing tests in order to
process their results after an internal timeout. However, the logic
required for this feature was overly complicated and prevented an
acceptable implementation for fast aborts. Furthermore, also the fuzzers
suffered from timeouts on swarming due to hanging tests.

Instead, we now abort immediately on internal timeout (used on
fuzzers), SIGINT (Ctrl-C) and SIGTERM. Ongoing tests are immediately
terminated and their results are disregarded. On SIGTERM and SIGINT,
we return with non-zero exit codes, and zero on internal timeout.

This will also properly return json output, when the external hard
timeout is reached on swarming (causes SIGTERM).

TBR=sergiyb@chromium.org

Bug: v8:7423, chromium:813065
Change-Id: Ib20f835f58a0970693bdd3b21dc5d766d8e115d8
Reviewed-on: https://chromium-review.googlesource.com/924852
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51399}
2018-02-20 18:02:25 +00:00
..
local [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
objects [test] Remove dead code from suites and tests 2018-02-01 14:12:49 +00:00
outproc [test] Forgive tests timing out on num-fuzzers 2018-02-08 23:08:05 +00:00
testproc [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
utils Reland "[test] Random seed processor" 2018-01-31 09:53:34 +00:00
__init__.py First commit of new tools/run-tests.py 2012-09-24 09:38:46 +00:00
base_runner.py [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
num_fuzzer.py [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
PRESUBMIT.py [test] Add basic test-runner system tests 2017-12-27 18:03:49 +00:00
standard_runner.py [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
test_config.py [test] Move options to test config 2018-01-31 13:46:29 +00:00
testrunner.isolate [test] Fix isolate for auto-detect in gyp 2017-10-19 11:52:11 +00:00
trycatch_loader.js [test] Properly load mjsunit.js on endurance fuzzer 2018-02-02 13:55:32 +00:00