Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_panel_fitting: test requires eDP
@ 2021-01-25  7:03 Nidhi Gupta
  2021-01-25  7:34 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nidhi Gupta @ 2021-01-25  7:03 UTC (permalink / raw)
  To: igt-dev; +Cc: Nidhi Gupta

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@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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-25 12:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-25  7:03 [igt-dev] [PATCH i-g-t] tests/kms_panel_fitting: test requires eDP Nidhi Gupta
2021-01-25  7:34 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-01-25  8:51 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-01-25 12:25 ` [igt-dev] [PATCH i-g-t] " Ville Syrjälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox