Skip to contentSkip to conversation

tests/kms_concurrent: Skip the subtest if the resolution is not supported

PATCH New Nidhi Gupta 2 participants 2 messages May 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 tests/kms_concurrent: Skip the subtest if the resolution is not supported

The kms_concurrent is about testing mode setting with reducing the resolution and then again increasing it, for this the test will take the high resolution supported by the connector and then calculate the lowest resolution, if the calculated resolution is not supported by the connector it will assign the default resolution of 1024x 768 without checking.

Added check to skip the subtest if the current mode is smaller than 1024 mode (igt_skip_on_f(mode_default->vdisplay < 1024)) becuase if the default resolution is greater then the highest resolution supported by the connector then the test should skip.

---
 tests/kms_concurrent.c | 1 +
 1 file changed, 1 insertion(+)
tests/kms_concurrent.c +1 -0
index c334194b..d4536e3b 100644
@@ -252,6 +252,7 @@ get_lowres_mode(data_t *data, const drmModeModeInfo *mode_default,
 			return igt_memdup(mode, sizeof(*mode));
 	}
 
+	igt_skip_on_f(mode_default->vdisplay < 1024, "No suitable resolution was found\n");
 	return igt_std_1024_mode_get(igt_output_preferred_vrefresh(output));
 }
 
Signature · 1 line
2.26.2
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_concurrent: Skip the subtest if the resolution is not supported (rev4)

== Series Details ==

== Series Details ==

Series: tests/kms_concurrent: Skip the subtest if the resolution is not supported (rev4)
URL : https://patchwork.freedesktop.org/series/103569/
State : failure

== Summary ==

Series 103569 revision 4 was fully merged or fully failed: no git log