[igt-dev] [PATCH i-g-t 2/2] kms_ccs: Don't skip more subtests than necessary

Petri Latvala petri.latvala at intel.com
Thu Aug 19 15:25:07 UTC 2021


Wrap test_output in a subtest group so we still get to test for the
rest of the pipes if a pipe cannot drive any outputs, or any subtests
that are later written after the calls to test_output.

Signed-off-by: Petri Latvala <petri.latvala at intel.com>
Cc: Matthew Auld <matthew.auld at intel.com>
Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 tests/kms_ccs.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index 238c245c..586680ae 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -621,10 +621,12 @@ igt_main_args("cs:", NULL, help_str, opt_handler, &data)
 	for_each_pipe_static(pipe) {
 		data.pipe = pipe;
 
-		for (int c = 0; c < ARRAY_SIZE(tests); c++) {
-			data.flags = tests[c].flags;
-			igt_describe(tests[c].description);
-			test_output(&data, tests[c].testname);
+		igt_subtest_group {
+			for (int c = 0; c < ARRAY_SIZE(tests); c++) {
+				data.flags = tests[c].flags;
+				igt_describe(tests[c].description);
+				test_output(&data, tests[c].testname);
+			}
 		}
 	}
 
-- 
2.29.2



More information about the igt-dev mailing list