[PATCH i-g-t v1] tests/kms_force_connector_basic: Add skip reason for missing VGA/HDMI connector

From
Sowmiya S <hidden>
Date
2026-11-02 13:06:08
igt_require(connector_id) only printed the bare variable name on skip,
giving no indication of why the test was skipped. Use igt_require_f()
to state that no VGA or HDMI connector was found for better test
diagnostics.

Signed-off-by: Sowmiya S <redacted>
---
 tests/kms_force_connector_basic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_force_connector_basic.c b/tests/kms_force_connector_basic.c
index c4252ea02..e09f63a20 100644
--- a/tests/kms_force_connector_basic.c
+++ b/tests/kms_force_connector_basic.c
@@ -392,7 +392,7 @@ int igt_main_args("", long_opts, help_str, opt_handler, NULL)
 			drmModeFreeConnector(connector);
 		}
 
-		igt_require(connector_id);
+		igt_require_f(connector_id, "no VGA or HDMI connector found\n");
 
 end:
 		/* Reacquire status after clearing any previous overrides. */
-- 
2.43.0
Thread (7 messages) 7 messages, 3 authors, last reply 7d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help