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 28742CCD19A for ; Fri, 17 Oct 2025 11:53:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D492A10EBC6; Fri, 17 Oct 2025 11:53:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="hCANT1cy"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6CE8710EBC6 for ; Fri, 17 Oct 2025 11:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1760701989; x=1792237989; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3C/UiKGIXBjUFrvmH6TDoBXnD5Q64tfZVttiWDQ5XSw=; b=hCANT1cyZ1xJePlgWu8CjsrRUnNvWboJOjfZYxJVUuAmqhFuuvZbaYnS wlr5gu1Kr7KuNZNXsliGZp4n+cnpJqYxazhc09G1P+NiBWAYymLaZDH2G AfM/otQwL5xjXL4TlR9Dvo6RQr+0rD4D2RqMY+tnLpS10kkDpo0YxUwJN w0XMU0jTEYMC7XBATL49acaWtuuYGgJcD7Sda4xWcjIzKqawd97Ub68hQ tL5ekFOIKOV7ShI2qVxBM75qXXEeJkyTZyQrgmiQRIVYQGo6/64lVWrA3 Yz6p9lTkrpLBuidf+dlnVGHcNnHiw5M6fALR4eFoLAoXqCdOSVnfyY5Fg A==; X-CSE-ConnectionGUID: lEah7fp+SHKYZjeEdK2tAQ== X-CSE-MsgGUID: U/TjOes0Rta5ri5KR/vhoA== X-IronPort-AV: E=McAfee;i="6800,10657,11531"; a="62819997" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="62819997" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2025 04:53:08 -0700 X-CSE-ConnectionGUID: NcILE+FgSxa03FwTg7N8Iw== X-CSE-MsgGUID: SPpaVveLS+SCqo8SPzdXiw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,236,1754982000"; d="scan'208";a="182719878" Received: from sowmi-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.56]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2025 04:53:06 -0700 From: Sowmiya S To: igt-dev@lists.freedesktop.org Cc: karthik.b.s@intel.com, pranay.samala@intel.com, sowmiya Subject: [PATCH i-g-t v2] tests/kms_atomic_transition: Add info meassages for skipped subtest Date: Fri, 17 Oct 2025 17:40:55 +0530 Message-ID: <20251017121055.2960836-1-sowmiya.s@intel.com> X-Mailer: git-send-email 2.43.0 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" From: sowmiya 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. Signed-off-by: sowmiya --- 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..032abf54b 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("Invalid test for internal panel\n"); + break; + case TRANSITION_MODESET_FAST: + igt_info("Invalid test for external panel\n"); + break; + default: + break; + } + } } } -- 2.43.0