[igt-dev] [PATCH 2/2] tests/kms_invalid_mode: sanitize the system state between subtests
Sharma, Swati2
swati2.sharma at intel.com
Wed May 25 10:27:41 UTC 2022
Hi Nidhi,
Please refer this https://cbea.ms/git-commit/
For subj add space before colon.
And we can have simple subject "IGT cleanup"
You can add this is commit message.
On 20-May-22 6:42 AM, Nidhi Gupta wrote:
> Before running the subtest we need to sanitize the system state
> to default, since we can't trust the state of previous subtest, used
> igt_display_reset() to sanitize the state.
>
> Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
> ---
> tests/kms_invalid_mode.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c
> index bb524037..8115f7fd 100644
> --- a/tests/kms_invalid_mode.c
> +++ b/tests/kms_invalid_mode.c
> @@ -222,6 +222,7 @@ test_output(data_t *data)
>
> static void test(data_t *data)
> {
> + igt_display_reset(&data->display);
> int valid_connectors = 0;
>
> for_each_connected_output(&data->display, data->output) {
--
~Swati Sharma
More information about the igt-dev
mailing list