[PATCH i-g-t v1 7/7] tests/core_hotunplug: Skip if no render available
Andrzej Hajda
andrzej.hajda at intel.com
Wed Jun 12 07:18:07 UTC 2024
On 07.06.2024 17:36, Kamil Konieczny wrote:
> All subtests uses render device for health checks so skip
> early if it is not present.
>
> Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>
Regards
Andrzej
> ---
> tests/core_hotunplug.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
> index 3b0135fc8..da3374123 100644
> --- a/tests/core_hotunplug.c
> +++ b/tests/core_hotunplug.c
> @@ -737,6 +737,10 @@ igt_main
>
> igt_assert_eq(close_device(fd_drm, "", "selected "), -1);
>
> + fd_drm = __drm_open_driver_render(priv.chipset);
> + igt_skip_on_f(fd_drm < 0, "No known DRM render device found\n");
> + igt_assert_eq(close_device(fd_drm, "", "selected render "), -1);
> +
> prepare(&priv);
> }
>
More information about the igt-dev
mailing list