Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Naladala, Ramanaidu" <Ramanaidu.naladala@intel.com>
To: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t v4] tests/kms_atomic_transition: Add info messages for skipped subtest
Date: Mon, 10 Nov 2025 10:44:43 +0530	[thread overview]
Message-ID: <7ff2e650-032b-41af-8206-008f48061dbb@intel.com> (raw)
In-Reply-To: <20251106095208.3051901-1-sowmiya.s@intel.com>

Hi Sowmiya,

On 11/6/2025 3:22 PM, Sowmiya S wrote:
> 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
> v4: declare and initialize flag inside
>      subtest (pranay)
>
> Signed-off-by: Sowmiya S <sowmiya.s@intel.com>
> Reviewed-by: Pranay Samala <pranay.samala@intel.com>
> ---
>   tests/kms_atomic_transition.c | 21 +++++++++++++++++++--
>   1 file changed, 19 insertions(+), 2 deletions(-)
>
> diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
> index 419afe4dd..9a74b4297 100644
> --- a/tests/kms_atomic_transition.c
> +++ b/tests/kms_atomic_transition.c
> @@ -1216,6 +1216,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) {
> +			bool info_flag = false;
>   			pipe_count = 0;
>   
>   			for_each_pipe_with_valid_output(&data.display, pipe, output) {
> @@ -1225,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;
> @@ -1250,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;
> +				}
This logic won't work for multi display config. Check and update the logic.
> +			}
>   		}
>   	}
>   

  reply	other threads:[~2025-11-10  5:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-27  4:48 [PATCH i-g-t v3] tests/kms_atomic_transition: Add info messages for skipped subtest Sowmiya S
2025-10-27  4:37 ` S, Sowmiya
2025-10-27  5:04 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-10-27  5:06 ` ✗ Fi.CI.BUILD: failure for tests/kms_atomic_transition: Add info messages for skipped subtest (rev2) Patchwork
2025-10-27  5:16 ` ✓ i915.CI.BAT: success for tests/kms_atomic_transition: Add info messages for skipped subtest Patchwork
2025-10-27  5:37 ` [PATCH i-g-t v3] " B, Jeevan
2025-10-27  6:06 ` ✓ Xe.CI.Full: success for " Patchwork
2025-10-27  6:10 ` [PATCH i-g-t v3] " Sowmiya S
2025-11-06  9:16   ` Samala, Pranay
2025-11-06  9:52   ` [PATCH i-g-t v4] " Sowmiya S
2025-11-10  5:14     ` Naladala, Ramanaidu [this message]
2025-11-10 10:11       ` S, Sowmiya
2025-10-27  6:33 ` ✓ Xe.CI.BAT: success for tests/kms_atomic_transition: Add info messages for skipped subtest (rev3) Patchwork
2025-10-27  7:19 ` ✗ i915.CI.Full: failure for tests/kms_atomic_transition: Add info messages for skipped subtest Patchwork
2025-10-27  7:38 ` ✗ Xe.CI.Full: failure for tests/kms_atomic_transition: Add info messages for skipped subtest (rev3) Patchwork
2025-10-27  7:39 ` ✓ i915.CI.BAT: success " Patchwork
2025-10-27  8:24 ` ✓ i915.CI.Full: " Patchwork
2025-11-06 20:13 ` ✓ Xe.CI.BAT: success for tests/kms_atomic_transition: Add info messages for skipped subtest (rev4) Patchwork
2025-11-06 21:06 ` ✓ i915.CI.BAT: " Patchwork
2025-11-07 14:44 ` ✗ i915.CI.Full: failure " Patchwork
2025-11-07 18:21 ` ✗ Xe.CI.Full: " Patchwork

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=7ff2e650-032b-41af-8206-008f48061dbb@intel.com \
    --to=ramanaidu.naladala@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