Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Legowski <jakub.legowski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: zbigniew.kempczynski@intel.com, peter.senna@linux.intel.com,
	piotr.rudnicki@intel.com, mika.kuoppala@intel.com,
	Jakub Legowski <jakub.legowski@intel.com>
Subject: [PATCH v1 1/1] tests/intel/xe_exec_basic: skip test when no GTs
Date: Mon, 11 May 2026 15:33:59 +0200	[thread overview]
Message-ID: <20260511133359.198762-1-jakub.legowski@intel.com> (raw)

Add igt_require_f() in the fixture to check that GT count
is non-zero, ensuring the test is properly skipped when
the device has no usable GTs.

Signed-off-by: Jakub Legowski <jakub.legowski@intel.com>
---
 tests/intel/xe_exec_basic.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_exec_basic.c b/tests/intel/xe_exec_basic.c
index 5335bffc4..70a0d999f 100644
--- a/tests/intel/xe_exec_basic.c
+++ b/tests/intel/xe_exec_basic.c
@@ -345,9 +345,12 @@ int igt_main()
 	};
 	int fd;
 
-	igt_fixture()
+	igt_fixture() {
 		fd = drm_open_driver(DRIVER_XE);
 
+		igt_require_f(xe_number_gt(fd) > 0, "No GTs available on device\n");
+	}
+
 	for (const struct section *s = sections; s->name; s++) {
 		igt_subtest_with_dynamic_f("once-%s", s->name)
 			xe_for_each_engine(fd, hwe)
-- 
2.48.1

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.


             reply	other threads:[~2026-05-12  8:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11 13:33 Jakub Legowski [this message]
2026-05-11 13:51 ` [PATCH v1 1/1] tests/intel/xe_exec_basic: skip test when no GTs Zbigniew Kempczyński
2026-05-12 19:49 ` ✓ i915.CI.BAT: success for series starting with [v1,1/1] " Patchwork
2026-05-12 20:01 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-13 10:18 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-13 15:59 ` ✗ i915.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=20260511133359.198762-1-jakub.legowski@intel.com \
    --to=jakub.legowski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=mika.kuoppala@intel.com \
    --cc=peter.senna@linux.intel.com \
    --cc=piotr.rudnicki@intel.com \
    --cc=zbigniew.kempczynski@intel.com \
    /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