summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>2024-05-27 18:41:27 +0530
committerBhanuprakash Modem <bhanuprakash.modem@intel.com>2024-05-28 11:23:32 +0530
commitbaba9988c34c55977332044f3521cfbba80ca630 (patch)
tree515dc5efa4bc435bd932fdcf918e1dfcf105a9f5
parent1d7b961235e345db20933c057f265898e2e96fd2 (diff)
tests/intel/xe_module_load: Unload module if loaded with modparams
Subtests should unload the module themselves if they use modparams, otherwise consequent subtests amy misbehave. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
-rw-r--r--tests/intel/xe_module_load.c2
1 files changed, 2 insertions, 0 deletions
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") {