[igt-dev] [i-g-t] tests/kms_force_connector_basic: Limit "force-load-detect" test to i915

Bhanuprakash Modem bhanuprakash.modem at intel.com
Thu Apr 20 06:35:15 UTC 2023


As load_detect_test is enabled only for i915, limit the IGT test
igt at kms_force_connector_basic@force-load-detect execution to i915
only.

Cc: Jani Nikula <jani.nikula at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/intel-ci/xe-fast-feedback.testlist | 1 -
 tests/kms_force_connector_basic.c        | 5 ++++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/intel-ci/xe-fast-feedback.testlist b/tests/intel-ci/xe-fast-feedback.testlist
index 5db27c634..3c9276e49 100644
--- a/tests/intel-ci/xe-fast-feedback.testlist
+++ b/tests/intel-ci/xe-fast-feedback.testlist
@@ -167,6 +167,5 @@ igt at kms_addfb_basic@unused-offsets
 igt at kms_addfb_basic@unused-pitches
 igt at kms_force_connector_basic@force-connector-state
 igt at kms_force_connector_basic@force-edid
-igt at kms_force_connector_basic@force-load-detect
 igt at kms_force_connector_basic@prune-stale-modes
 igt at kms_prop_blob@basic
diff --git a/tests/kms_force_connector_basic.c b/tests/kms_force_connector_basic.c
index 35e8153c8..f1508efba 100644
--- a/tests/kms_force_connector_basic.c
+++ b/tests/kms_force_connector_basic.c
@@ -372,8 +372,11 @@ end:
 	}
 
 	igt_describe("Test to detect forced load.");
-	igt_subtest("force-load-detect")
+	igt_subtest("force-load-detect") {
+		igt_require_i915(drm_fd);
+
 		force_load_detect(drm_fd, connector, res);
+	}
 
 	for (i = 0; i < ARRAY_SIZE(tests); i++) {
 		igt_describe_f("%s", tests[i].desc);
-- 
2.40.0



More information about the igt-dev mailing list