[PATCH i-g-t 1/1] tests/intel/xe_module_load: Fixed the skipped test issue
Sobin Thomas
sobin.thomas at intel.com
Tue Apr 22 10:29:36 UTC 2025
Fixed the xe load test getting skipped by unloading the
xe driver before loading the driver.
Signed-off-by: Sobin Thomas <sobin.thomas at intel.com>
---
tests/intel/xe_module_load.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/intel/xe_module_load.c b/tests/intel/xe_module_load.c
index 83e37430f..15cbfb51f 100644
--- a/tests/intel/xe_module_load.c
+++ b/tests/intel/xe_module_load.c
@@ -120,6 +120,9 @@ igt_main
{
igt_describe("Check if xe and friends are not yet loaded, then load them.");
igt_subtest("load") {
+ if (igt_kmod_is_loaded("xe"))
+ igt_xe_driver_unload();
+
for (int i = 0; unwanted_drivers[i] != NULL; i++) {
igt_skip_on_f(igt_kmod_is_loaded(unwanted_drivers[i]),
"%s is already loaded\n", unwanted_drivers[i]);
--
2.34.1
More information about the igt-dev
mailing list