[igt-dev] [PATCH i-g-t] tests/kms_chamelium: fix missing reprobe_connector

Simon Ser simon.ser at intel.com
Wed Sep 4 08:32:45 UTC 2019


A reprobe_connector has been mungled by mistake in a previous patch. The old
connector status was used, which always failed because it's asserted to be
DRM_MODE_CONNECTED before the unplug.

Signed-off-by: Simon Ser <simon.ser at intel.com>
Fixes: 87209d8421ea ("tests/kms_chamelium: chatty connector status assertions")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111407
---
 tests/kms_chamelium.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
index d6aec8b97eb2..6b6292497cd7 100644
--- a/tests/kms_chamelium.c
+++ b/tests/kms_chamelium.c
@@ -271,6 +271,7 @@ test_basic_hotplug(data_t *data, struct chamelium_port *port, int toggle_count)
 		chamelium_unplug(data->chamelium, port);
 		igt_assert_f(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT),
 			     "Timed out waiting for unplug uevent\n");
+		status = reprobe_connector(data, port);
 		igt_assert_f(status == DRM_MODE_DISCONNECTED,
 			     "Invalid connector status after hotplug: "
 			     "got %s, expected disconnected\n",
--
2.23.0



More information about the igt-dev mailing list