From: sumit kishore <sumit.kishore@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kunal1.joshi@intel.com, sumit kishore <sumit.kishore@intel.com>
Subject: [PATCH i-g-t v1] tests/kms_properties: Add skip on headless machines
Date: Thu, 5 Mar 2026 12:52:57 +0530 [thread overview]
Message-ID: <20260305072257.233432-1-sumit.kishore@intel.com> (raw)
Print debug messages for sub-tests which are expected to
skip on headless display systems.
Signed-off-by: sumit kishore <sumit.kishore@intel.com>
---
tests/kms_properties.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tests/kms_properties.c b/tests/kms_properties.c
index 86d05c6d4..01f0d5867 100644
--- a/tests/kms_properties.c
+++ b/tests/kms_properties.c
@@ -73,6 +73,19 @@ struct additional_test {
uint32_t prop_id, uint64_t prop_value, bool atomic);
};
+static void is_headless_display(igt_display_t *display)
+{
+ igt_output_t *output;
+ bool display_connected = false;
+
+ for_each_connected_output(display, output) {
+ display_connected = true;
+ break;
+ }
+
+ igt_skip_on_f(!display_connected, "No active display connected, skipping sub-test\n");
+}
+
static void prepare_pipe(igt_display_t *display, igt_crtc_t *crtc,
igt_output_t *output, struct igt_fb *fb)
{
@@ -377,6 +390,8 @@ static void plane_properties(igt_display_t *display, bool atomic)
igt_output_t *output;
igt_crtc_t *crtc;
+ is_headless_display(display);
+
for_each_crtc_with_single_output(display, crtc, output) {
igt_display_reset(display);
@@ -400,6 +415,8 @@ static void crtc_properties(igt_display_t *display, bool atomic)
igt_crtc_t *crtc;
igt_output_t *output;
+ is_headless_display(display);
+
for_each_crtc_with_single_output(display, crtc, output) {
igt_display_reset(display);
--
2.43.0
next reply other threads:[~2026-03-05 7:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 7:22 sumit kishore [this message]
2026-03-05 8:18 ` [PATCH i-g-t v1] tests/kms_properties: Add skip on headless machines Samala, Pranay
2026-03-05 18:28 ` ✗ Fi.CI.BUILD: failure for " 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=20260305072257.233432-1-sumit.kishore@intel.com \
--to=sumit.kishore@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kunal1.joshi@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