summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>2022-06-24 10:05:25 +0530
committerBhanuprakash Modem <bhanuprakash.modem@intel.com>2022-06-28 18:48:35 +0530
commitbd8ea32e5b1cbd7932c4072f8b6fbd3a9846b0a5 (patch)
treec227b3189e96784bd7bbe45de6d13c5636569a98
parente3d52c91a9730f7a1f74f375b6a6ac6085a36172 (diff)
tests/kms_cursor_edge_walk: Fix test requirement to avoid SKIPs
As (54ff3199) introduced dynamic subtets, tests are getting Skipped on all pipes except pipe-A. This patch will fix the test requirement condition to avoid such skips. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/6250 Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
-rw-r--r--tests/kms_cursor_edge_walk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c
index 526bc6b3..af3769db 100644
--- a/tests/kms_cursor_edge_walk.c
+++ b/tests/kms_cursor_edge_walk.c
@@ -347,11 +347,12 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for (i = 0; i < ARRAY_SIZE(tests); i++) {
igt_subtest_with_dynamic(tests[i].name) {
for_each_pipe(&data.display, data.pipe) {
- igt_require(data.curw <= max_curw && data.curh <= max_curh);
data.output = igt_get_single_output_for_pipe(&data.display, data.pipe);
for (data.curw = 64; data.curw <= 256; data.curw *= 2) {
data.curh = data.curw;
+ igt_require(data.curw <= max_curw && data.curh <= max_curh);
+
igt_dynamic_f("pipe-%s-%s-%dx%d",
kmstest_pipe_name(data.pipe),
data.output->name,