diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-08-14 11:32:06 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-08-14 13:26:27 +0300 |
commit | d41c4ccbd2f905bd82f55e37283a6d646f0a5e93 (patch) | |
tree | 3c376e5e3b485584fbc9fb733a18d36dde8598b0 /tests/kms_ccs.c | |
parent | 229d7d27e5a24fa8e4155ada48467b16db9486e0 (diff) |
tests/kms_ccs: Fix subtest enumeration:
- We can't enumerate planes, push that into the subtest.
- pipe enumeration needs to use for_each_pipe_static.
This fells our CI since the test enumeration/sharding happens on the build
server, which has no gfx nor does the job run as root ...
Cc: Daniel Stone <daniels@collabora.com>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/kms_ccs.c')
-rw-r--r-- | tests/kms_ccs.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c index c4f51296..ab9325d1 100644 --- a/tests/kms_ccs.c +++ b/tests/kms_ccs.c @@ -467,6 +467,8 @@ static data_t data; igt_main { + enum pipe pipe; + igt_fixture { data.drm_fd = drm_open_driver_master(DRIVER_INTEL); @@ -477,8 +479,8 @@ igt_main igt_display_init(&data.display, data.drm_fd); } - for_each_pipe(&data.display, data.pipe) { - const char *pipe_name = kmstest_pipe_name(data.pipe); + for_each_pipe_static(pipe) { + const char *pipe_name = kmstest_pipe_name(pipe); int sprite_idx = 0; data.flags = TEST_BAD_PIXEL_FORMAT; @@ -498,13 +500,13 @@ igt_main test_output(&data); data.flags = TEST_CRC; - for_each_plane_on_pipe(&data.display, data.pipe, data.plane) { - if (data.plane->type == DRM_PLANE_TYPE_PRIMARY) - continue; - sprite_idx++; - igt_subtest_f("pipe-%s-crc-sprite-%d-basic", pipe_name, - sprite_idx) - test_output(&data); + igt_subtest_f("pipe-%s-crc-sprite-planes-basic", pipe_name) { + for_each_plane_on_pipe(&data.display, data.pipe, data.plane) { + if (data.plane->type == DRM_PLANE_TYPE_PRIMARY) + continue; + sprite_idx++; + test_output(&data); + } } data.plane = NULL; |