Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C3E910E396 for ; Wed, 12 Oct 2022 07:04:07 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Wed, 12 Oct 2022 12:33:31 +0530 Message-Id: <20221012070331.3057013-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t] tests/kms_atomic_transition: Fix the test execution on internal panels List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: As we are intended to test few cases on internal panels separately, fix the logic to execute such tests on internal panels only. 'TRANSITION_MODESET_FAST' -> should be only for internal panels 'TRANSITION_MODESET' -> should be only for external panels Fixes: 2527ce52 (tests/kms_atomic_transition: Convert tests to dynamic) Cc: Karthik B S Signed-off-by: Bhanuprakash Modem --- tests/kms_atomic_transition.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index 247b0be4..25757131 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -1096,11 +1096,14 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) * number of combinations, to avoid long runtimes due to modesets on * panels with long power cycle delays. */ - if (((transition_tests[i].type == TRANSITION_MODESET) || - (transition_tests[i].type == TRANSITION_MODESET_FAST)) && + if ((transition_tests[i].type == TRANSITION_MODESET) && output_is_internal_panel(output)) continue; + if ((transition_tests[i].type == TRANSITION_MODESET_FAST) && + !output_is_internal_panel(output)) + continue; + if (pipe_count == 2 * count && !data.extended) break; -- 2.37.3