[PATCH i-g-t 5/6] tests/kms_pipe_crc_basic: Restrict the execution of subtest to single pipe

Nidhi Gupta nidhi1.gupta at intel.com
Thu Jan 5 03:57:58 UTC 2023


To reduce the overall execution time of the test, now
all the subtests will be executed on single pipe instead
of all the pipes.

Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/kms_pipe_crc_basic.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 91a1b8ab..dd846952 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -342,6 +342,8 @@ igt_main
 						test_read_crc(&data, pipe, output, tests[i].flags);
 					}
 				}
+				/*Restrict the execution of the subtest to single pipe*/
+				break;
 			}
 		}
 	}
@@ -352,6 +354,8 @@ igt_main
 		for_each_pipe_with_single_output(&data.display, pipe, output) {
 			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), output->name)
 				test_disable_crc_after_crtc(&data, pipe, output);
+			/*Restrict the execution of the subtest to single pipe*/
+			break;
 		}
 	}
 
@@ -360,6 +364,8 @@ igt_main
 		for_each_pipe_with_single_output(&data.display, pipe, output) {
 			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), output->name)
 				test_compare_crc(&data, pipe, output);
+			/*Restrict the execution of the subtest to single pipe*/
+			break;
 		}
 	}
 
-- 
2.25.1



More information about the Intel-gfx-trybot mailing list