public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Nidhi Gupta <nidhi1.gupta@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Nidhi Gupta <nidhi1.gupta@intel.com>
Subject: [igt-dev] [PATCH i-g-t 1/6] tests/i915/kms_mmap_write_crc: Restrict the number of iteration to reduce the execution time
Date: Mon,  9 Jan 2023 19:10:41 +0530	[thread overview]
Message-ID: <20230109134046.85340-2-nidhi1.gupta@intel.com> (raw)
In-Reply-To: <20230109134046.85340-1-nidhi1.gupta@intel.com>

Reduce the number of iterations of subtest for stress test
from 10 to 2 to reduce the overall execution time.

Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
 tests/i915/kms_mmap_write_crc.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/i915/kms_mmap_write_crc.c b/tests/i915/kms_mmap_write_crc.c
index 96ddac11..8d995634 100644
--- a/tests/i915/kms_mmap_write_crc.c
+++ b/tests/i915/kms_mmap_write_crc.c
@@ -282,11 +282,14 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)
 				data.output = output;
 				data.pipe = pipe;
 
-				igt_info("Using %d rounds for each pipe in the test\n", ROUNDS);
 				prepare_crtc(&data);
 
-				for (i = 0; i < ROUNDS; i++)
+				for (i = 0; i < ROUNDS; i++) {
+					if (igt_run_in_simulation() && ROUNDS > 2)
+						break;
+					igt_info("Using %d rounds for each pipe in the test\n", i);
 					test(&data);
+				}
 
 				cleanup_crtc(&data);
 			}
-- 
2.25.1

  reply	other threads:[~2023-01-09 13:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-09 13:40 [igt-dev] [PATCH i-g-t 0/6] Modified few kms tests to reduce execution time Nidhi Gupta
2023-01-09 13:40 ` Nidhi Gupta [this message]
2023-01-09 13:40 ` [igt-dev] [PATCH i-g-t 2/6] tests/kms_plane_alpha_blend: Restrict the execution of subtest to single pipe Nidhi Gupta
2023-01-09 13:40 ` [igt-dev] [PATCH i-g-t 3/6] tests/kms_color: Restrict the execution of subtests " Nidhi Gupta
2023-01-09 13:40 ` [igt-dev] [PATCH i-g-t 4/6] tests/kms_plane_scaling: Restrict the execution of subtest " Nidhi Gupta
2023-01-09 13:40 ` [igt-dev] [PATCH i-g-t 5/6] tests/kms_pipe_crc_basic: " Nidhi Gupta
2023-01-09 13:40 ` [igt-dev] [PATCH i-g-t 6/6] tests/kms_async_flips: Restrict the execution of the " Nidhi Gupta
2023-01-09 18:04 ` [igt-dev] ✓ Fi.CI.BAT: success for Modified few kms tests to reduce execution time Patchwork
2023-01-10  0:23 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20230109134046.85340-2-nidhi1.gupta@intel.com \
    --to=nidhi1.gupta@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