[igt-dev] [RFC, i-g-t] tests/kms_atomic_transition:reduce execution time

nidhi1.gupta at intel.com nidhi1.gupta at intel.com
Thu Dec 3 06:17:33 UTC 2020


From: Nidhi Gupta <nidhi1.gupta at intel.com>

test kms_atomic_transition at plane-toggle-modeset-transition
taking long time to execute on CI, with latest execution
single subtest is taking around 69.68s

Particular subtest is using for_each_pipe_with_valid_output
function which will execute on all the possible
combination of pipe and output

To reduce the execution time replaced the function with
for_each_pipe_with_single_output this will loop over all
the pipes but at most once

Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/kms_atomic_transition.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index a71bbe10..9e3cfe27 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -1021,7 +1021,7 @@ igt_main
 	}
 
 	igt_subtest("plane-toggle-modeset-transition")
-		for_each_pipe_with_valid_output(&display, pipe, output)
+		for_each_pipe_with_single_output(&display, pipe, output)
 			run_transition_test(&display, pipe, output, TRANSITION_MODESET_DISABLE, false, false);
 
 	for (i = 1; i <= IGT_MAX_PIPES; i++) {
-- 
2.26.2



More information about the igt-dev mailing list