[PATCH i-g-t v3] tests/intel/kms_big_fb: Restrict runs on simulation
Pranay Samala
pranay.samala at intel.com
Mon May 20 05:01:55 UTC 2024
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 at 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
More information about the igt-dev
mailing list