[PATCH i-g-t 3/4] tests/kms_display_modes: Skip test if joiner display is connected
Jeevan B
jeevan.b at intel.com
Wed Dec 4 06:09:23 UTC 2024
High-resolution displays that support joiner modes can cause extended mode
tests to fail. This commit introduces a check to skip these tests if a
joiner mode display is connected, ensuring the test suite runs smoothly
without unnecessary failures.
v2: Add output name in skip message.
v3: Update logic.
Signed-off-by: Jeevan B <jeevan.b at intel.com>
Reviewed-by: Swati Sharma <swati2.sharma at intel.com>
---
tests/kms_display_modes.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
index f1d8ab03d..e41c60cc0 100644
--- a/tests/kms_display_modes.c
+++ b/tests/kms_display_modes.c
@@ -232,6 +232,12 @@ static void run_extendedmode_test(data_t *data) {
for_each_pipe(display, pipe1) {
for_each_valid_output_on_pipe(display, pipe1, output1) {
+
+ if (is_joiner_mode(data->drm_fd, output1)) {
+ igt_info("Skipping joiner output %s", output1->name);
+ continue;
+ }
+
for_each_pipe(display, pipe2) {
if (pipe1 == pipe2)
continue;
@@ -318,6 +324,10 @@ igt_main
igt_display_require_output(&data.display);
for_each_connected_output(&data.display, output) {
+ if (is_joiner_mode(data.drm_fd, output)) {
+ igt_info("Skipping joiner output %s", output->name);
+ continue;
+ }
data.mst_output[count++] = output;
if (output_is_dp_mst(&data, output, dp_mst_outputs))
dp_mst_outputs++;
--
2.25.1
More information about the igt-dev
mailing list