From 78619fde4008424c472906041edb1d204e014f7c Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Wed, 10 Oct 2018 13:41:00 +0300 Subject: 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 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106127 Cc: Arkadiusz Hiler Cc: Tomi Sarvela Cc: Martin Peres Reviewed-by: Arkadiusz Hiler --- runner/executor.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runner/executor.h') 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 { -- cgit v1.2.3