summaryrefslogtreecommitdiff
path: root/runner/executor.h
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2018-10-10 13:41:00 +0300
committerPetri Latvala <petri.latvala@intel.com>2018-10-19 16:04:14 +0300
commit78619fde4008424c472906041edb1d204e014f7c (patch)
tree52d1284b26f4a54bd4798d01c5f6c4b4e72d63db /runner/executor.h
parent6f27fddc6dd79c0486181b64201c6773c5c42a24 (diff)
runner: Add --overall-timeout
With --overall-timeout $foo, the runner will stop executing new tests when $foo seconds have already been used. A resumed run will start over with no time used, using the same timeout. This allows for executing a long list of tests piecemeal, in about $foo length executions. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106127 Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: Tomi Sarvela <tomi.p.sarvela@intel.com> Cc: Martin Peres <martin.peres@linux.intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'runner/executor.h')
-rw-r--r--runner/executor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runner/executor.h b/runner/executor.h
index 8fe1605b..252339ab 100644
--- a/runner/executor.h
+++ b/runner/executor.h
@@ -7,6 +7,12 @@
struct execute_state
{
size_t next;
+ /*
+ * < 0 : No overall timeout used.
+ * = 0 : Timeouted, don't execute any more.
+ * > 0 : Timeout in use, time left.
+ */
+ double time_left;
};
enum {