[igt-dev] [PATCH i-g-t 2/2] tests/kms_plane_alpha_blend: reset display after test
Kahola, Mika
mika.kahola at intel.com
Thu Aug 19 12:07:50 UTC 2021
Reviewed-by: Mika Kahola <mika.kahola at intel.com>
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Juha-
> Pekka Heikkila
> Sent: Tuesday, August 17, 2021 12:27 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> Subject: [igt-dev] [PATCH i-g-t 2/2] tests/kms_plane_alpha_blend: reset display
> after test
>
> If test would fail alpha/blend settings would be left on random setting. Clean up
> before exiting.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> ---
> tests/kms_plane_alpha_blend.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
> index cb8f92891..cff9a9eff 100644
> --- a/tests/kms_plane_alpha_blend.c
> +++ b/tests/kms_plane_alpha_blend.c
> @@ -586,6 +586,11 @@ igt_main
> igt_subtest_group
> run_subtests(&data, pipe);
>
> - igt_fixture
> + igt_fixture {
> + igt_display_reset(&data.display);
> + igt_display_commit2(&data.display, data.display.is_atomic ?
> + COMMIT_ATOMIC : COMMIT_LEGACY);
> +
> igt_display_fini(&data.display);
> + }
> }
> --
> 2.28.0
More information about the igt-dev
mailing list