[igt-dev] [PATCH 1/2] tests/chamelium/kms_chamelium_edid: reset state before starting subtest
Karthik B S
karthik.b.s at intel.com
Thu Mar 23 14:31:40 UTC 2023
On 3/15/2023 3:36 PM, Kunal Joshi wrote:
> 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>
Reviewed-by: Karthik B S <karthik.b.s 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;
More information about the igt-dev
mailing list