[igt-dev] [PATCH i-g-t] tests/kms_atomic_interruptible: use pipe_name followed by output_name

Karthik B S karthik.b.s at intel.com
Fri Oct 13 05:01:15 UTC 2023


On 10/11/2023 2:05 PM, Swati Sharma wrote:
> Use pipe_name followed by output_name.
>
> Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
> ---
>   tests/kms_atomic_interruptible.c | 14 +++++++-------
>   1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/tests/kms_atomic_interruptible.c b/tests/kms_atomic_interruptible.c
> index 0ae2435f9..1a104106a 100644
> --- a/tests/kms_atomic_interruptible.c
> +++ b/tests/kms_atomic_interruptible.c
> @@ -363,7 +363,7 @@ igt_main
>   			if (!pipe_output_combo_valid(&display, pipe, output))
>   				continue;
>   
> -			igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))
> +			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output))
>   				run_plane_test(&display, pipe, output, test_legacy_modeset, DRM_PLANE_TYPE_PRIMARY);
>   			break;
>   		}
> @@ -375,7 +375,7 @@ igt_main
>   			if (!pipe_output_combo_valid(&display, pipe, output))
>   				continue;
>   
> -			igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))
> +			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output))
>   				run_plane_test(&display, pipe, output, test_atomic_modeset, DRM_PLANE_TYPE_PRIMARY);
>   			break;
>   		}
> @@ -387,7 +387,7 @@ igt_main
>   			if (!pipe_output_combo_valid(&display, pipe, output))
>   				continue;
>   
> -			igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))
> +			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output))
>   				run_plane_test(&display, pipe, output, test_legacy_dpms, DRM_PLANE_TYPE_PRIMARY);
>   			break;
>   		}
> @@ -399,7 +399,7 @@ igt_main
>   			if (!pipe_output_combo_valid(&display, pipe, output))
>   				continue;
>   
> -			igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))
> +			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output))
>   				run_plane_test(&display, pipe, output, test_pageflip, DRM_PLANE_TYPE_PRIMARY);
>   			break;
>   		}
> @@ -411,7 +411,7 @@ igt_main
>   			if (!pipe_output_combo_valid(&display, pipe, output))
>   				continue;
>   
> -			igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))
> +			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output))
>   				run_plane_test(&display, pipe, output, test_setcursor, DRM_PLANE_TYPE_CURSOR);
>   			break;
>   		}
> @@ -423,7 +423,7 @@ igt_main
>   			if (!pipe_output_combo_valid(&display, pipe, output))
>   				continue;
>   
> -			igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))
> +			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output))
>   				run_plane_test(&display, pipe, output, test_setplane, DRM_PLANE_TYPE_PRIMARY);
>   			break;
>   		}
> @@ -435,7 +435,7 @@ igt_main
>   			if (!pipe_output_combo_valid(&display, pipe, output))
>   				continue;
>   
> -			igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))
> +			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output))
>   				run_plane_test(&display, pipe, output, test_setplane, DRM_PLANE_TYPE_CURSOR);
>   			break;
>   		}


More information about the igt-dev mailing list