From: sumit kishore <sumit.kishore@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: karthik.b.s@intel.com, swati2.sharma@intel.com,
sumit kishore <sumit.kishore@intel.com>
Subject: [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip test when no display is connected
Date: Wed, 25 Mar 2026 17:22:11 +0530 [thread overview]
Message-ID: <20260325115211.316735-1-sumit.kishore@intel.com> (raw)
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]
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
next reply other threads:[~2026-03-25 11:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 11:52 sumit kishore [this message]
2026-03-25 19:15 ` ✓ Xe.CI.BAT: success for tests/kms_plane_alpha_blend: Skip test when no display is connected Patchwork
2026-03-25 19:41 ` ✓ i915.CI.BAT: " Patchwork
2026-03-26 4:16 ` ✓ Xe.CI.FULL: " Patchwork
2026-03-26 4:59 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-26 5:49 ` [PATCH i-g-t] " S, Sowmiya
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=20260325115211.316735-1-sumit.kishore@intel.com \
--to=sumit.kishore@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@intel.com \
--cc=swati2.sharma@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