[PATCH i-g-t v2 6/8] tests/core_hotunplug: Skip if no render available

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon Aug 5 14:37:09 UTC 2024


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>
---
 tests/core_hotunplug.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
index b66d5e4cf..7f17f4423 100644
--- a/tests/core_hotunplug.c
+++ b/tests/core_hotunplug.c
@@ -708,6 +708,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);
 	}
 
-- 
2.43.0



More information about the igt-dev mailing list