[igt-dev] [PATCH 1/2] tests/chamelium/kms_chamelium_edid: reset state before starting subtest
Kunal Joshi
kunal1.joshi at intel.com
Wed Mar 15 10:06:56 UTC 2023
In some subtests of kms_chamelium_edid we were trying
to plug a port that could already be plugged, so
reset chamelium state at the start
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
---
tests/chamelium/kms_chamelium_edid.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/chamelium/kms_chamelium_edid.c b/tests/chamelium/kms_chamelium_edid.c
index f7609932..e2b6c48f 100644
--- a/tests/chamelium/kms_chamelium_edid.c
+++ b/tests/chamelium/kms_chamelium_edid.c
@@ -190,6 +190,9 @@ static void edid_stress_resolution(chamelium_data_t *data,
int i;
struct chamelium *chamelium = data->chamelium;
struct udev_monitor *mon = igt_watch_uevents();
+ chamelium_reset_state(&data->display, data->chamelium, port,
+ data->ports, data->port_count);
+
for (i = 0; i < edids_list_len; ++i) {
struct chamelium_edid *chamelium_edid;
--
2.25.1
More information about the igt-dev
mailing list