All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_display_modes: reduce exec. time for sim env
@ 2025-09-04  3:43 Jeevan B
  2025-09-04  4:29 ` ✓ Xe.CI.BAT: success for tests/kms_display_modes: reduce exec. time for sim env (rev2) Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Jeevan B @ 2025-09-04  3:43 UTC (permalink / raw)
  To: igt-dev; +Cc: swati2.sharma, Jeevan B

For simulation environment, we can reduce execution time
by running test only with one combination.

v2: Remove redundant simulation check by using flag

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_display_modes.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
index c93195b3c..e95e334d2 100644
--- a/tests/kms_display_modes.c
+++ b/tests/kms_display_modes.c
@@ -180,6 +180,7 @@ static void run_extendedmode_basic(data_t *data,
 
 static void run_extendedmode_test(data_t *data) {
 	enum pipe pipe1, pipe2;
+	bool sim_flag = igt_run_in_simulation();
 	igt_output_t *output1, *output2;
 	igt_display_t *display = &data->display;
 
@@ -218,9 +219,11 @@ static void run_extendedmode_test(data_t *data) {
 			 * For simulation env, no need to run
 			 * test with each valid output on pipe.
 			 */
-			if (igt_run_in_simulation())
+			if (sim_flag)
 				break;
 		}
+		if (sim_flag)
+			break;
 	}
 }
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH i-g-t] tests/kms_display_modes: reduce exec. time for sim env
@ 2025-09-01  6:36 Jeevan B
  2025-09-03  7:43 ` Sharma, Swati2
  0 siblings, 1 reply; 8+ messages in thread
From: Jeevan B @ 2025-09-01  6:36 UTC (permalink / raw)
  To: igt-dev; +Cc: Jeevan B

For simulation environment, we can reduce execution time
by running test only with one combination.

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_display_modes.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
index c93195b3c..97e12eb30 100644
--- a/tests/kms_display_modes.c
+++ b/tests/kms_display_modes.c
@@ -221,6 +221,8 @@ static void run_extendedmode_test(data_t *data) {
 			if (igt_run_in_simulation())
 				break;
 		}
+		if (igt_run_in_simulation())
+			break;
 	}
 }
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-17  8:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04  3:43 [PATCH i-g-t] tests/kms_display_modes: reduce exec. time for sim env Jeevan B
2025-09-04  4:29 ` ✓ Xe.CI.BAT: success for tests/kms_display_modes: reduce exec. time for sim env (rev2) Patchwork
2025-09-04  4:40 ` ✓ i915.CI.BAT: " Patchwork
2025-09-04 13:24 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-05  5:20 ` ✗ i915.CI.Full: " Patchwork
2025-09-17  8:08 ` [PATCH i-g-t] tests/kms_display_modes: reduce exec. time for sim env Sharma, Swati2
  -- strict thread matches above, loose matches on Subject: below --
2025-09-01  6:36 Jeevan B
2025-09-03  7:43 ` Sharma, Swati2

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.