Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v3] tests/intel/kms_big_fb: Restrict runs on simulation
@ 2024-05-20  5:01 Pranay Samala
  2024-05-20 10:39 ` Kamil Konieczny
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Pranay Samala @ 2024-05-20  5:01 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, jeevan.b, sameer.lattannavar, pranay.samala

This test executes on only one pipe and all the available planes with
set of 6 coordinates. Due to this, test takes long duration to execute
on simulation and gets timeout.

Restricting the test to execute only on one of the coordinates for
simulation.

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/intel/kms_big_fb.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/intel/kms_big_fb.c b/tests/intel/kms_big_fb.c
index 1e45d8e42..502905974 100644
--- a/tests/intel/kms_big_fb.c
+++ b/tests/intel/kms_big_fb.c
@@ -529,6 +529,9 @@ static bool test_plane(data_t *data)
 
 		igt_assert_crc_equal(&big_crc, &small_crc);
 		igt_pipe_crc_stop(data->pipe_crc);
+
+		if (igt_run_in_simulation())
+			break;
 	}
 
 	return true;
@@ -540,6 +543,7 @@ static bool test_pipe(data_t *data)
 	drmModeModeInfo *mode;
 	igt_plane_t *primary;
 	bool ret = false;
+	bool run_in_simulation = igt_run_in_simulation();
 
 	igt_info("Using (pipe %s + %s) to run the subtest.\n",
 		 kmstest_pipe_name(data->pipe), igt_output_name(data->output));
@@ -597,7 +601,7 @@ static bool test_pipe(data_t *data)
 
 	for_each_plane_on_pipe(&data->display, data->pipe, data->plane) {
 		ret = test_plane(data);
-		if (ret)
+		if (ret || run_in_simulation)
 			break;
 	}
 
-- 
2.34.1


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

end of thread, other threads:[~2024-05-21  9:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-20  5:01 [PATCH i-g-t v3] tests/intel/kms_big_fb: Restrict runs on simulation Pranay Samala
2024-05-20 10:39 ` Kamil Konieczny
2024-05-20 14:05 ` ✓ CI.xeBAT: success for " Patchwork
2024-05-20 14:28 ` ✓ Fi.CI.BAT: " Patchwork
2024-05-20 15:21 ` ✓ CI.xeFULL: " Patchwork
2024-05-21  4:51 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-05-21  9:14   ` Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox