[igt-dev] [PATCH 2/2] tests/kms_writeback: Test cleanup
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Thu Sep 22 10:02:09 UTC 2022
On Thu-22-09-2022 06:28 am, Nidhi Gupta wrote:
> Sanitize the system state before starting the subtest.
>
> Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
> ---
> tests/kms_writeback.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c
> index 3781fa34..5149e302 100644
> --- a/tests/kms_writeback.c
> +++ b/tests/kms_writeback.c
> @@ -521,6 +521,8 @@ igt_main_args("b:c:dl", long_options, help_str, opt_handler, NULL)
>
> kmstest_set_vt_graphics_mode();
>
> + igt_display_reset(display);
> +
> igt_display_require(&display, display.drm_fd);
Please drop this I can see igt_display_require() is already present.
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/kms_writeback.c#n493
Found some other cleanups:
Example:
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/kms_writeback.c#n113
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/kms_writeback.c#n144
Why do we need hard-coded values for override_mode? Can't we use default
mode?
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/kms_writeback.c#n536
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/kms_writeback.c#n559
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/kms_writeback.c#n576
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/kms_writeback.c#n592
As this check is common in all subtests, please move this to igt_fixture
- Bhanu
>
> igt_require(display.is_atomic);
More information about the igt-dev
mailing list