All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/kms_display_modes: Skip this test on DP MST config
Date: Fri,  1 Apr 2022 16:21:03 +0530	[thread overview]
Message-ID: <20220401105103.17183-1-jeevan.b@intel.com> (raw)

currently this test fails on dp-mst setup. so, with this fix
test will skip which is expected for extended mode test case.

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_display_modes.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
index eff30cbb..4701c3ef 100644
--- a/tests/kms_display_modes.c
+++ b/tests/kms_display_modes.c
@@ -135,6 +135,8 @@ igt_main
 	int valid_output = 0, i, j = 0;
 	igt_output_t *output;
 	int pipe[IGT_MAX_PIPES];
+	struct kmstest_connector_config config;
+	const char *encoder;
 
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
@@ -146,6 +148,11 @@ igt_main
 
 			if (valid_output > 1)
 				break;
+
+			kmstest_get_connector_config(data.drm_fd,
+						     output->config.connector->connector_id,
+						     -1, &config);
+			encoder = kmstest_encoder_type_str(config.encoder->encoder_type);
 		}
 
 		data.n_pipes = 0;
@@ -160,6 +167,10 @@ igt_main
 
 	igt_describe("Test for validating display extended mode with a pair of connected displays");
 	igt_subtest_with_dynamic("extended-mode-basic") {
+
+		if (strcmp(encoder, "DP MST") == 0)
+			igt_skip("Test dosen't support DP MST\n");
+
 		for (i = 0; i < data.n_pipes - 1; i++) {
 			igt_dynamic_f("pipe-%s%s", kmstest_pipe_name(pipe[i]),
 					kmstest_pipe_name(pipe[i+1]));
-- 
2.35.1

             reply	other threads:[~2022-04-01 10:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01 10:51 Jeevan B [this message]
2022-04-01 11:07 ` [igt-dev] [PATCH i-g-t] tests/kms_display_modes: Skip this test on DP MST config Petri Latvala
2022-04-01 11:08 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
2022-04-01 11:36 ` [igt-dev] ✗ Fi.CI.BAT: failure " 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=20220401105103.17183-1-jeevan.b@intel.com \
    --to=jeevan.b@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.