tests: let output damage skip without color ops
If the compositor does not have the shadow buffer capability (implied by
the color ops capability bit), then trying to run the shadow buffer test
is useless, it would just fail. Let it skip instead.
Fixes: b1e56143c5979161b4b12c1e1ad0e68c8fa8665e
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
diff --git a/tests/output-damage-test.c b/tests/output-damage-test.c
index 03ee4dd..7d26e02 100644
--- a/tests/output-damage-test.c
+++ b/tests/output-damage-test.c
@@ -141,6 +141,10 @@
* that step.
*/
setup.test_quirks.gl_force_full_redraw_of_shadow_fb = true;
+
+ /* To skip instead of fail the test if shadow not available */
+ setup.test_quirks.required_capabilities = WESTON_CAP_COLOR_OPS;
+
weston_ini_setup(&setup,
cfgln("[output]"),
cfgln("name=headless"),