[PATCH i-g-t 26/26] Remember to track subtest starts for per-test-timeout

Petri Latvala petri.latvala at intel.com
Fri Mar 12 11:03:41 UTC 2021


---
 runner/executor.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/runner/executor.c b/runner/executor.c
index 0e81d429..da874ba0 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1020,6 +1020,10 @@ static int monitor_output(pid_t child,
 			if (packet->type != PACKETTYPE_EXEC)
 				socket_comms_used = true;
 
+			if (packet->type == PACKETTYPE_SUBTEST_START ||
+			    packet->type == PACKETTYPE_DYNAMIC_SUBTEST_START)
+				time_last_subtest = time_now;
+
 			if (settings->log_level >= LOG_LEVEL_VERBOSE) {
 				runnerpacket_read_helper helper = {};
 				const char *time;
-- 
2.29.2



More information about the Intel-gfx-trybot mailing list