Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sobin Thomas <sobin.thomas@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: dominik.karol.piatkowski@intel.com
Subject: [PATCH i-g-t 1/1] tests/intel/xe_module_load: Fixed the skipped test issue
Date: Tue, 22 Apr 2025 10:29:36 +0000	[thread overview]
Message-ID: <20250422102936.2950388-2-sobin.thomas@intel.com> (raw)
In-Reply-To: <20250422102936.2950388-1-sobin.thomas@intel.com>

Fixed the xe load test getting skipped by unloading the
xe driver before loading the driver.

Signed-off-by: Sobin Thomas <sobin.thomas@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


  reply	other threads:[~2025-04-22 10:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-22 10:29 [PATCH i-g-t 0/1] Fixed xe load test skip issue Sobin Thomas
2025-04-22 10:29 ` Sobin Thomas [this message]
2025-04-22 11:58   ` [PATCH i-g-t 1/1] tests/intel/xe_module_load: Fixed the skipped test issue Piatkowski, Dominik Karol
2025-04-22 21:08 ` ✓ i915.CI.BAT: success for Fixed xe load test skip issue Patchwork
2025-04-23  3:35 ` ✓ Xe.CI.Full: " Patchwork
2025-04-23  6:43 ` ✗ i915.CI.Full: failure " Patchwork
2025-04-23 22:31 ` ✓ Xe.CI.BAT: success " Patchwork
2025-04-24 11:26 ` ✓ Xe.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250422102936.2950388-2-sobin.thomas@intel.com \
    --to=sobin.thomas@intel.com \
    --cc=dominik.karol.piatkowski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox