[igt-dev] [PATCH i-g-t 2/2] igt_runner: output planned job_list tasks in dry-run mode
Kamil Konieczny
kamil.konieczny at linux.intel.com
Fri Oct 20 11:29:36 UTC 2023
Hi Mauro,
On 2023-10-20 at 12:20:33 +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.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
I will add Pteri on cc.
Regards,
Kamil
> ---
> 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