Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: nidhi1.gupta@intel.com
To: igt-dev@lists.freedesktop.org
Cc: Nidhi Gupta <nidhi1.gupta@intel.com>
Subject: [igt-dev] [RFC, i-g-t] Added Dynamic Subtest
Date: Tue,  1 Dec 2020 08:02:58 +0530	[thread overview]
Message-ID: <20201201023258.5351-1-nidhi1.gupta@intel.com> (raw)

From: Nidhi Gupta <nidhi1.gupta@intel.com>

In kms_plane_scaling have a subtest with 2 pipe it
will execute it weather 2 pipes are available or not.
Later it has to be analysed and discard it as valid skip.
To save this time updated in test to first check the available
outputs and then execute the test
Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
 tests/kms_plane_scaling.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 89b82416..95be07cc 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -682,6 +682,7 @@ static data_t data;
 igt_main_args("", long_opts, help_str, opt_handler, &data)
 {
 	enum pipe pipe;
+	int count = 0;
 
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
@@ -717,10 +718,17 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 				igt_dynamic_f("pipe-%s-scaler-with-clipping-clamping", kmstest_pipe_name(pipe))
 					test_scaler_with_clipping_clamping_scenario(&data, pipe, output);
 		}
-	}
 
-	igt_subtest_f("2x-scaler-multi-pipe")
-		test_scaler_with_multi_pipe_plane(&data);
+		igt_subtest_with_dynamic("scaler-multi-pipe") {
+			for_each_pipe_with_single_output(&data.display, pipe, output) {
+				++count;
+			}
+			if (count >= 2) {
+				igt_dynamic_f("2x-scaler-multi-pipe")
+					test_scaler_with_multi_pipe_plane(&data);
+			}
+		}
+	}
 
 	igt_fixture
 		igt_display_fini(&data.display);
-- 
2.26.2

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

             reply	other threads:[~2020-12-01  2:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01  2:32 nidhi1.gupta [this message]
2020-12-01  3:16 ` [igt-dev] ✓ Fi.CI.BAT: success for Added dynamic Subtest (rev6) Patchwork
2020-12-01 13:44 ` [igt-dev] [RFC, i-g-t] Added Dynamic Subtest Petri Latvala
2020-12-01 15:59 ` [igt-dev] ✗ Fi.CI.IGT: failure for Added dynamic Subtest (rev6) Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2020-11-06  9:27 [igt-dev] [RFC, i-g-t] Added dynamic Subtest nidhi1.gupta
2020-11-06  9:34 ` Petri Latvala
2020-11-11  9:42   ` Karthik B S
2020-11-11 10:26     ` Petri Latvala

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=20201201023258.5351-1-nidhi1.gupta@intel.com \
    --to=nidhi1.gupta@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox