[igt-dev] [PATCH i-g-t] tests/kms_panel_fitting: test requires eDP

Nidhi Gupta nidhi1.gupta at intel.com
Mon Jan 25 07:03:36 UTC 2021


Added a condition to check the availability of eDP
before execution of the test. Skip the test with
proper debug messsage if eDP is not there

Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/kms_panel_fitting.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index 4f4c5608..9f6b00e5 100644
--- a/tests/kms_panel_fitting.c
+++ b/tests/kms_panel_fitting.c
@@ -254,7 +254,10 @@ igt_main
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 		igt_display_require(&data.display, data.drm_fd);
-		igt_display_require_output(&data.display);
+
+		if (data.display.outputs->config.connector->connector_type !=
+		    DRM_MODE_CONNECTOR_eDP)
+			igt_skip("Can't test: no usable eDP screen.\n");
 	}
 
 	igt_subtest("legacy")
-- 
2.26.2



More information about the igt-dev mailing list