summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunal Joshi <kunal1.joshi@intel.com>2022-09-09 16:16:35 +0530
committerKunal Joshi <kunal1.joshi@intel.com>2022-09-26 14:34:43 +0530
commit5e232c77cd762147e0882c337a984121fabb1c75 (patch)
treefe039f0c1cd586a1081a54ccca1f827323e759f8
parentdcb1d7a8822e62935f4fe3f2e6a04caaee669369 (diff)
tests/kms_chamelium: Fix common suspend/hibernate
Currently test executes and fails even if no ports are connected to chamelium, Added a igt_fixture to prevent that from happening. v2 : try_suspend_resume_hpd already loops through every port (Petri) Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--tests/chamelium/kms_chamelium.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/chamelium/kms_chamelium.c b/tests/chamelium/kms_chamelium.c
index d97b439a9..1be1c41a2 100644
--- a/tests/chamelium/kms_chamelium.c
+++ b/tests/chamelium/kms_chamelium.c
@@ -2945,6 +2945,11 @@ igt_main
igt_describe("Tests that operate on all connectors");
igt_subtest_group {
+
+ igt_fixture {
+ igt_require(data.port_count);
+ }
+
igt_describe(test_suspend_resume_hpd_common_desc);
igt_subtest("common-hpd-after-suspend")
test_suspend_resume_hpd_common(&data,