summaryrefslogtreecommitdiff
path: root/runner/settings.h
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2020-02-17 16:50:42 +0200
committerPetri Latvala <petri.latvala@intel.com>2020-02-19 12:34:36 +0200
commitdfba090e720ed4e043158887f1ba6a76059491e8 (patch)
treed87228d0d72dafb197db0f42bcc3845de9cea9c7 /runner/settings.h
parent4dce5cf1f39192656e113260e062e7f6782a4b46 (diff)
runner: Introduce per-test timeouts
A new config option, --per-test-timeout, sets a time a single test cannot exceed without getting itself killed. The time resets when starting a subtest or a dynamic subtest, so an execution with --per-test-timeout=20 can indeed go over 20 seconds a long as it launches a dynamic subtest within that time. As a bonus, verbose log level from runner now also prints dynamic subtest begin/result. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'runner/settings.h')
-rw-r--r--runner/settings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runner/settings.h b/runner/settings.h
index 13409f04..5203ec6e 100644
--- a/runner/settings.h
+++ b/runner/settings.h
@@ -38,6 +38,7 @@ struct settings {
bool overwrite;
bool multiple_mode;
int inactivity_timeout;
+ int per_test_timeout;
int overall_timeout;
bool use_watchdog;
char *test_root;