[PATCH i-g-t 2/3] tests/kms_content_protection: Print correct output

B, Jeevan jeevan.b at intel.com
Tue Sep 10 09:59:17 UTC 2024


LGTM. 

Reviewed-by: Jeevan B <jeevan.b at intel.com>

> -----Original Message-----
> From: Kandpal, Suraj <suraj.kandpal at intel.com>
> Sent: Tuesday, September 10, 2024 3:15 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Thasleem, Mohammed <mohammed.thasleem at intel.com>; B S, Karthik
> <karthik.b.s at intel.com>; B, Jeevan <jeevan.b at intel.com>; Kandpal, Suraj
> <suraj.kandpal at intel.com>
> Subject: [PATCH i-g-t 2/3] tests/kms_content_protection: Print correct
> output
> 
> We should be printing the output we are waiting for which is first_output
> rather than printing the 0th output.
> 
> Signed-off-by: Suraj Kandpal <suraj.kandpal at intel.com>
> ---
>  tests/kms_content_protection.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms_content_protection.c
> b/tests/kms_content_protection.c index cad8811ea..c3771fad8 100644
> --- a/tests/kms_content_protection.c
> +++ b/tests/kms_content_protection.c
> @@ -653,7 +653,8 @@ static void test_cp_lic_on_mst(igt_output_t
> *mst_outputs[], int valid_outputs, i
> 
>  	/* Only wait for the first output, this optimizes the test execution
> time */
>  	ret = wait_for_prop_value(mst_outputs[first_output], CP_DESIRED,
> LIC_PERIOD_MSEC);
> -	igt_assert_f(!ret, "Content Protection LIC Failed on %s\n",
> mst_outputs[0]->name);
> +	igt_assert_f(!ret, "Content Protection LIC Failed on %s\n",
> +		     mst_outputs[first_output]->name);
> 
>  	for (count = first_output + 1; count < valid_outputs; count++) {
>  		val = igt_output_get_prop(mst_outputs[count],
> IGT_CONNECTOR_CONTENT_PROTECTION);
> --
> 2.43.2



More information about the igt-dev mailing list