[PATCH i-g-t] tests/intel/xe_module_load: Unload module if loaded with modparams

Bhanuprakash Modem bhanuprakash.modem at intel.com
Mon May 27 13:11:27 UTC 2024


Subtests should unload the module themselves if they use modparams,
otherwise consequent subtests amy misbehave.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/intel/xe_module_load.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/intel/xe_module_load.c b/tests/intel/xe_module_load.c
index 83f7df341..0856a57c8 100644
--- a/tests/intel/xe_module_load.c
+++ b/tests/intel/xe_module_load.c
@@ -140,11 +140,13 @@ igt_main
 		}
 
 		load_and_check_xe("force_probe=*");
+		igt_xe_driver_unload();
 	}
 
 	igt_subtest("reload-no-display") {
 		igt_xe_driver_unload();
 		load_and_check_xe("enable_display=0");
+		igt_xe_driver_unload();
 	}
 
 	igt_subtest("many-reload") {
-- 
2.43.2



More information about the igt-dev mailing list