[PATCH i-g-t v1 7/7] tests/core_hotunplug: Skip if no render available
Kamil Konieczny
kamil.konieczny at linux.intel.com
Fri Jun 7 15:36:19 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>
---
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);
}
--
2.43.0
More information about the igt-dev
mailing list