diff options
author | Paul Kocialkowki <paul.kocialkowski@linux.intel.com> | 2017-06-26 16:59:01 +0300 |
---|---|---|
committer | Lyude <lyude@redhat.com> | 2017-06-26 17:27:54 -0400 |
commit | a22b4b12cc61a842d92503951cbc2c7c607fa8dd (patch) | |
tree | de05264ec4c2b28f2c3389f11c04967f6b6a640f /tests/chamelium.c | |
parent | 6fb973cfa7bd85c9cc081857a77c3f0e8e1a9154 (diff) |
tests/chamelium: Check all connectors state for basic hotplug
Without doing a full reprobe, hpd toggles are sent without much delay
between them. With a VGA connector attached, the reset occurring before
the test will toggle its state, with a delay (inherent to hpd detection
on VGA).
It often occurs that this VGA state toggle is detected in the middle of
the current connector test, triggering a hotplug event unrelated to the
current connector and thus causing the test to fail.
Thus, the state of all connectors is checked (and waited for) before
running the basic hotplug test.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'tests/chamelium.c')
-rw-r--r-- | tests/chamelium.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/chamelium.c b/tests/chamelium.c index 3cf9f3b5..6079303a 100644 --- a/tests/chamelium.c +++ b/tests/chamelium.c @@ -163,7 +163,7 @@ test_basic_hotplug(data_t *data, struct chamelium_port *port) struct udev_monitor *mon = igt_watch_hotplug(); int i; - reset_state(data, port); + reset_state(data, NULL); igt_hpd_storm_set_threshold(data->drm_fd, 0); for (i = 0; i < 15; i++) { |