From 6c9a70f0ed51832a762e009c490a082f5d19e25d Mon Sep 17 00:00:00 2001 From: José Roberto de Souza Date: Mon, 7 Jan 2019 09:41:23 -0800 Subject: tests/fbcon_fbt: Allow fbcon to bind when running this test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 9c4114ec5d87 (lib: Always unbind the fbcon around igt) broke fbcon_fbt test as fbcon is not allowed to bind when executing any IGT test, so lets allow it again just for this test. Cc: Paulo Zanoni Cc: Dhinakaran Pandiyan Cc: Rodrigo Vivi Cc: Chris Wilson Reviewed-by: Maarten Lankhorst Reviewed-by: Dhinakaran Pandiyan Signed-off-by: José Roberto de Souza --- tests/kms_fbcon_fbt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c index a717e000..e36835ab 100644 --- a/tests/kms_fbcon_fbt.c +++ b/tests/kms_fbcon_fbt.c @@ -26,6 +26,7 @@ #include "igt.h" #include "igt_psr.h" +#include "igt_sysfs.h" #include #include #include @@ -279,6 +280,12 @@ static void setup_environment(void) drm_fd = drm_open_driver_master(DRIVER_INTEL); igt_require(drm_fd >= 0); igt_assert(close(drm_fd) == 0); + + /* + * igt_main()->igt_subtest_init_parse_opts()->common_init() disables the + * fbcon bind, so to test it is necessary enable it again + */ + bind_fbcon(true); } static void teardown_environment(void) -- cgit v1.2.3