[igt-dev] [PATCH i-g-t 2/2] igt_runner: output planned job_list tasks in dry-run mode
Petri Latvala
adrinael at adrinael.net
Fri Oct 20 13:18:40 UTC 2023
On Fri, Oct 20, 2023 at 12:20:33PM +0200, Mauro Carvalho Chehab wrote:
> 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.
If you only need this for debugging, look at the job list file the dry
run created.
--
Petri Latvala
>
> 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