* [PATCH i-g-t v1] tests/kms_properties: Add skip on headless machines
@ 2026-03-05 7:22 sumit kishore
2026-03-05 8:18 ` Samala, Pranay
2026-03-05 18:28 ` ✗ Fi.CI.BUILD: failure for " Patchwork
0 siblings, 2 replies; 3+ messages in thread
From: sumit kishore @ 2026-03-05 7:22 UTC (permalink / raw)
To: igt-dev; +Cc: kunal1.joshi, sumit kishore
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH i-g-t v1] tests/kms_properties: Add skip on headless machines
2026-03-05 7:22 [PATCH i-g-t v1] tests/kms_properties: Add skip on headless machines sumit kishore
@ 2026-03-05 8:18 ` Samala, Pranay
2026-03-05 18:28 ` ✗ Fi.CI.BUILD: failure for " Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Samala, Pranay @ 2026-03-05 8:18 UTC (permalink / raw)
To: Kishore, Sumit, igt-dev@lists.freedesktop.org
Cc: Joshi, Kunal1, Kishore, Sumit
Hi Sumit,
> -----Original Message-----
> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of sumit
> kishore
> Sent: Thursday, March 5, 2026 12:53 PM
> To: igt-dev@lists.freedesktop.org
> Cc: Joshi, Kunal1 <kunal1.joshi@intel.com>; Kishore, Sumit
> <sumit.kishore@intel.com>
> Subject: [PATCH i-g-t v1] tests/kms_properties: Add skip on headless
> machines
>
> Print debug messages for sub-tests which are expected to skip on headless
> display systems.
>
> Signed-off-by: sumit kishore <sumit.kishore@intel.com>
*Sumit
*Kishore
> ---
> 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;
> + }
> +
The same review comments mentioned for the below patch apply here as well.
https://patchwork.freedesktop.org/patch/708585/?series=162500&rev=1
Regards,
Pranay
> + 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* ✗ Fi.CI.BUILD: failure for tests/kms_properties: Add skip on headless machines
2026-03-05 7:22 [PATCH i-g-t v1] tests/kms_properties: Add skip on headless machines sumit kishore
2026-03-05 8:18 ` Samala, Pranay
@ 2026-03-05 18:28 ` Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2026-03-05 18:28 UTC (permalink / raw)
To: sumit kishore; +Cc: igt-dev
== Series Details ==
Series: tests/kms_properties: Add skip on headless machines
URL : https://patchwork.freedesktop.org/series/162630/
State : failure
== Summary ==
Applying: tests/kms_properties: Add skip on headless machines
Using index info to reconstruct a base tree...
M tests/kms_properties.c
Falling back to patching base and 3-way merge...
Auto-merging tests/kms_properties.c
CONFLICT (content): Merge conflict in tests/kms_properties.c
Patch failed at 0001 tests/kms_properties: Add skip on headless machines
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-05 18:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 7:22 [PATCH i-g-t v1] tests/kms_properties: Add skip on headless machines sumit kishore
2026-03-05 8:18 ` Samala, Pranay
2026-03-05 18:28 ` ✗ Fi.CI.BUILD: failure for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox