[igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Reduce the execution time on simulation
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Thu Feb 9 06:23:21 UTC 2023
Due to the more number of iterations, "modest-transition" tests are
getting timed out on pre-si CI. Reducing the number of iterations to
half can save a lot of execution time.
V2: - Separate patch for cleanup
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_atomic_transition.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 6d2ebbbff..e1b74ac2c 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -858,6 +858,9 @@ retry:
iter_max = 1 << j;
+ if (igt_run_in_simulation() && iter_max > 1)
+ iter_max = iter_max >> 1;
+
if (igt_display_try_commit_atomic(&data->display,
DRM_MODE_ATOMIC_TEST_ONLY |
DRM_MODE_ATOMIC_ALLOW_MODESET,
--
2.39.0
More information about the igt-dev
mailing list