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