[igt-dev] [PATCH i-g-t 3/3] tests/kms_display_modes: reduce exec. time for sim env

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Mon May 29 12:30:29 UTC 2023


Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>

On 26.5.2023 9.45, Swati Sharma wrote:
> For simulation environment, we can reduce execution time
> by running test only on one valid output on pipe.
> 
> Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
> ---
>   tests/kms_display_modes.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
> index d69c7b93..b963c609 100644
> --- a/tests/kms_display_modes.c
> +++ b/tests/kms_display_modes.c
> @@ -169,6 +169,12 @@ static void run_extendedmode_test(data_t *data) {
>   								pipe2, output2);
>   				}
>   			}
> +			/*
> +			 * For simulation env, no need to run
> +			 * test with each valid output on pipe.
> +			 */
> +			if (igt_run_in_simulation())
> +				break;
>   		}
>   	}
>   }



More information about the igt-dev mailing list