[igt-dev] [i-g-t] tests/intel/kms_pm_lpsp: Fix test constraint for bigjoiner

Karthik B S karthik.b.s at intel.com
Fri Nov 3 08:04:45 UTC 2023


On 10/31/2023 4:34 PM, Bhanuprakash Modem wrote:
> If there is no Bigjoiner involved, the test constraint returns
> 'false', which causes the test to be skipped. Fix the test
> constraint logic to handle both bigjoiner & non-bigjoiner cases.
>
> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/9340
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
> ---
>   tests/intel/kms_pm_lpsp.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tests/intel/kms_pm_lpsp.c b/tests/intel/kms_pm_lpsp.c
> index cb3c3e379..a85e4e795 100644
> --- a/tests/intel/kms_pm_lpsp.c
> +++ b/tests/intel/kms_pm_lpsp.c
> @@ -174,9 +174,11 @@ static bool test_constraint(data_t *data)
>   
>   			return true;
>   		}
> +
> +		return false;
>   	}
>   
> -	return false;
> +	return true;
>   }
>   
>   static void test_lpsp(data_t *data)


More information about the igt-dev mailing list