From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 79F878984D for ; Tue, 1 Dec 2020 02:24:33 +0000 (UTC) From: nidhi1.gupta@intel.com Date: Tue, 1 Dec 2020 08:02:58 +0530 Message-Id: <20201201023258.5351-1-nidhi1.gupta@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [RFC, i-g-t] Added Dynamic Subtest List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Nidhi Gupta List-ID: From: Nidhi Gupta 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 --- 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