Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] tests/intel/xe_exec_basic: skip test when no GTs
@ 2026-05-11 13:33 Jakub Legowski
  2026-05-11 13:51 ` Zbigniew Kempczyński
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jakub Legowski @ 2026-05-11 13:33 UTC (permalink / raw)
  To: igt-dev
  Cc: zbigniew.kempczynski, peter.senna, piotr.rudnicki, mika.kuoppala,
	Jakub Legowski

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.


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-13 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11 13:33 [PATCH v1 1/1] tests/intel/xe_exec_basic: skip test when no GTs Jakub Legowski
2026-05-11 13:51 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox