public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v4] tests/kms_plane_alpha_blend: Skip test when no display is connected
@ 2026-04-01 12:18 sumit kishore
  2026-04-01 19:13 ` ✓ Xe.CI.BAT: success for tests/kms_plane_alpha_blend: Skip test when no display is connected (rev2) Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sumit kishore @ 2026-04-01 12:18 UTC (permalink / raw)
  To: igt-dev; +Cc: sowmiya.s, Sumit Kishore

From: Sumit Kishore <sumit.kishore@intel.com>

Add igt_display_require_output() to skip the test on headless systems
with no active display connected.

v2: Add igt_display_require_output. [Karthik]
v3: Update subject and description. [Swati]
v4: Updated the author name. [Sowmiya]

Signed-off-by: Sumit Kishore <sumit.kishore@intel.com>
---
 tests/kms_plane_alpha_blend.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
index 3a67dd8cd..3a2649833 100644
--- a/tests/kms_plane_alpha_blend.c
+++ b/tests/kms_plane_alpha_blend.c
@@ -764,6 +764,9 @@ int igt_main_args("e", NULL, help_str, opt_handler, NULL)
 		igt_display_require(&data.display, data.gfx_fd);
 		igt_require(data.display.is_atomic);
 
+		/* Check if at least one active display connected */
+		igt_display_require_output(&data.display);
+
 		/* Get active pipes. */
 		for_each_crtc(&data.display, crtc)
 			active_crtcs[last_crtc_index++] = crtc->crtc_index;
-- 
2.43.0


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

end of thread, other threads:[~2026-04-06  8:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 12:18 [PATCH i-g-t v4] tests/kms_plane_alpha_blend: Skip test when no display is connected sumit kishore
2026-04-01 19:13 ` ✓ Xe.CI.BAT: success for tests/kms_plane_alpha_blend: Skip test when no display is connected (rev2) Patchwork
2026-04-01 19:29 ` ✗ i915.CI.BAT: failure " Patchwork
2026-04-02  0:20 ` ✓ Xe.CI.FULL: success " Patchwork
2026-04-06  8:10 ` [PATCH i-g-t v4] tests/kms_plane_alpha_blend: Skip test when no display is connected S, Sowmiya

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