[igt-dev] [PATCH i-g-t 2/2] igt_runner: output planned job_list tasks in dry-run mode

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Fri Oct 20 10:20:33 UTC 2023


From: Mauro Carvalho Chehab <mchehab at kernel.org>

If igt_runner is executed in dry-run mode, show what jobs
were planned to be executed. That helps debugging issues at
the runner job plan logic.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 runner/executor.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/runner/executor.c b/runner/executor.c
index d3e6296dd6d8..3b9e39f4001b 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -2287,6 +2287,12 @@ bool execute(struct execute_state *state,
 	bool status = true;
 
 	if (state->dry) {
+		for (; state->next < job_list->size; state->next++) {
+			char *job_name;
+
+			job_name = entry_display_name(&job_list->entries[state->next]);
+			outf("dry-run: %s\n", job_name);
+		}
 		outf("Dry run, not executing. Invoke igt_resume if you want to execute.\n");
 		return true;
 	}
-- 
2.41.0



More information about the igt-dev mailing list