[igt-dev] [PATCH i-g-t] tests/kms_flip: Restrict the hang tests execution to single pipe combinations

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Jun 30 15:27:22 UTC 2023


Hi Jeevan,

On 2023-06-28 at 01:43:27 +0530, Jeevan B wrote:
> To save the CI execution time, instead of running on all pipes
> restrict the hang tests execution to single pipe combinations.
> 
> If we want to execute on all pipes, we need to pass an extra
> argument "-e" indicates extended.
> 
> Signed-off-by: Jeevan B <jeevan.b at intel.com>

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> ---
>  tests/kms_flip.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index f1e0700c1..00bb7e962 100755
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -1729,6 +1729,11 @@ static void run_pair(int duration, int flags)
>  					crtc_idxs[0] = n;
>  					crtc_idxs[1] = m;
>  
> +					/* Limit the execution to PIPE_A combination for hang tests */
> +					if ((flags & TEST_HANG) && !all_pipes &&
> +					    (n != 0 && n != resources->count_crtcs))
> +						continue;
> +
>  					run_test_on_crtc_set(&o, crtc_idxs,
>  							     RUN_PAIR,
>  							     resources->count_crtcs,
> -- 
> 2.41.0
> 


More information about the igt-dev mailing list