Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D56ABCCD1A5 for ; Mon, 27 Oct 2025 05:53:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 838E710E0A0; Mon, 27 Oct 2025 05:53:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="OPWx6Kdm"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C25510E0A0 for ; Mon, 27 Oct 2025 05:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761544380; x=1793080380; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tcco6HLhXSqx0MKThdwpaHDVSW2HHaoFz98tFwnN2gY=; b=OPWx6KdmltyCGHXzf7KIvkTpCIdlREqJXL4LUWh2OInef6zR15oF3lhS clYEeESl8pnqFONzUwRncdlcUQ9bISoghrOuwiHpebkNvSbegB8uiNitr kqOIpZ2FtqqahtRyu/8HgQ+zfAu5m0IZiYFBto6ZmPuPuCmMSE7j32R1d lOFZXyJzSGbgK5VpUBqKHUZMGfvc3Zo9KwV5jCekLEcvETo6hgBwQ+fr4 xCiUehs/A9pQmzSu1m/ov06NfUB8a8v3qJrmigMFNGhHQ72GLDXQcLzPz ln9U7pU7j/Vskj1R+wkXilnrcuohMk+mCLXWLsiCkzgPUwqX5103aHWh0 Q==; X-CSE-ConnectionGUID: Lkh9wauVTYG4RMYhsPCw9Q== X-CSE-MsgGUID: 8mwwL01nRYW1ZwFBzTTlpw== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="66233312" X-IronPort-AV: E=Sophos;i="6.19,258,1754982000"; d="scan'208";a="66233312" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2025 22:53:00 -0700 X-CSE-ConnectionGUID: 06xUoN+pTF6SNUrzuMm3eQ== X-CSE-MsgGUID: J80VItsjTGisz6c6a+p5Yw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,258,1754982000"; d="scan'208";a="222162020" Received: from sowmi-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.56]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2025 22:52:58 -0700 From: Sowmiya S To: igt-dev@lists.freedesktop.org Cc: Sowmiya S Subject: [PATCH i-g-t v3] tests/kms_atomic_transition: Add info messages for skipped subtest Date: Mon, 27 Oct 2025 11:40:57 +0530 Message-ID: <20251027061057.2996401-1-sowmiya.s@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251027044824.2995891-1-sowmiya.s@intel.com> References: <20251027044824.2995891-1-sowmiya.s@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Add info messages for subtests that are skipped without having proper info messages. This provides clearer insight into the reason for skipping. v2: Add switch case instead of if conditions Also changed the flag name. v3: Reframed the info message corrected author name Signed-off-by: Sowmiya S --- tests/kms_atomic_transition.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index a13830965..3c54604c2 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -1172,6 +1172,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) }; int i, j, count = 0; int pipe_count = 0; + bool info_flag = false; igt_fixture { unsigned int debug_mask_if_ci = DRM_UT_KMS; @@ -1216,6 +1217,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) igt_describe(transition_tests[i].desc); igt_subtest_with_dynamic_f("%s", transition_tests[i].name) { pipe_count = 0; + info_flag = false; for_each_pipe_with_valid_output(&data.display, pipe, output) { /* @@ -1224,12 +1226,16 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) * panels with long power cycle delays. */ if ((transition_tests[i].type == TRANSITION_MODESET) && - output_is_internal_panel(output)) + output_is_internal_panel(output)) { + info_flag = true; continue; + } if ((transition_tests[i].type == TRANSITION_MODESET_FAST) && - !output_is_internal_panel(output)) + !output_is_internal_panel(output)) { + info_flag = true; continue; + } if (pipe_count == 2 * count && !data.extended) break; @@ -1249,6 +1255,18 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) test_cleanup(&data, pipe, output, transition_tests[i].fencing); } + if (info_flag && !pipe_count) { + switch (transition_tests[i].type) { + case TRANSITION_MODESET: + igt_info("Skipping test: invalid for internal panel\n"); + break; + case TRANSITION_MODESET_FAST: + igt_info("Skipping test: invalid for external panel\n"); + break; + default: + break; + } + } } } -- 2.43.0