[igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Reduce the execution time on simulation
Karthik B S
karthik.b.s at intel.com
Fri Feb 10 04:47:35 UTC 2023
On 2/9/2023 11:53 AM, Bhanuprakash Modem wrote:
> Due to the more number of iterations, "modest-transition" tests are
> getting timed out on pre-si CI. Reducing the number of iterations to
> half can save a lot of execution time.
>
> V2: - Separate patch for cleanup
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
> ---
> tests/kms_atomic_transition.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
> index 6d2ebbbff..e1b74ac2c 100644
> --- a/tests/kms_atomic_transition.c
> +++ b/tests/kms_atomic_transition.c
> @@ -858,6 +858,9 @@ retry:
>
> iter_max = 1 << j;
>
> + if (igt_run_in_simulation() && iter_max > 1)
> + iter_max = iter_max >> 1;
> +
> if (igt_display_try_commit_atomic(&data->display,
> DRM_MODE_ATOMIC_TEST_ONLY |
> DRM_MODE_ATOMIC_ALLOW_MODESET,
More information about the igt-dev
mailing list