[PATCH i-g-t 1/6] tests/i915/kms_mmap_write_crc: Restrict the number of iteration to reduce the execution time

Nidhi Gupta nidhi1.gupta at intel.com
Thu Jan 5 03:57:54 UTC 2023


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 at 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



More information about the Intel-gfx-trybot mailing list