[igt-dev] [PATCH i-g-t v2 2/5] tests/i915/kms_pipe_b_c_ivb: test cleanup
Kunal Joshi
kunal1.joshi at intel.com
Wed Sep 28 06:39:09 UTC 2022
v1:
Sanitize the state before starting the subtest and close drm_fd.
v2:
Corrected commit subject. (Swati)
Removed comments (Swati)
CC: Jeevan B <jeevan.b at intel.com>
Cc: Swati Sharma <swati2.sharma at intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
Reviewed-by: Jeevan B <jeevan.b at intel.com>
---
tests/i915/kms_pipe_b_c_ivb.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/i915/kms_pipe_b_c_ivb.c b/tests/i915/kms_pipe_b_c_ivb.c
index 5823ae2a..495a484f 100644
--- a/tests/i915/kms_pipe_b_c_ivb.c
+++ b/tests/i915/kms_pipe_b_c_ivb.c
@@ -142,6 +142,7 @@ test_dpms(data_t *data)
igt_output_t *output1, *output2;
int ret;
+ igt_display_reset(&data->display);
find_outputs(data, &output1, &output2);
igt_info("Pipe %s will use connector %s\n",
@@ -164,6 +165,8 @@ test_lane_reduction(data_t *data)
igt_output_t *output1, *output2;
int ret;
+ igt_display_reset(&data->display);
+
find_outputs(data, &output1, &output2);
igt_info("Pipe %s will use connector %s\n",
@@ -187,6 +190,7 @@ test_disable_pipe_B(data_t *data)
igt_output_t *output1, *output2;
int ret;
+ igt_display_reset(&data->display);
find_outputs(data, &output1, &output2);
igt_info("Pipe %s will use connector %s\n",
@@ -213,6 +217,7 @@ test_from_C_to_B_with_3_lanes(data_t *data)
igt_output_t *output1, *output2;
int ret;
+ igt_display_reset(&data->display);
find_outputs(data, &output1, &output2);
igt_info("Pipe %s will use connector %s\n",
@@ -236,6 +241,7 @@ test_fail_enable_pipe_C_while_B_has_3_lanes(data_t *data)
igt_output_t *output1, *output2;
int ret;
+ igt_display_reset(&data->display);
find_outputs(data, &output1, &output2);
igt_info("Pipe %s will use connector %s\n",
@@ -291,5 +297,6 @@ igt_main
igt_fixture {
igt_display_fini(&data.display);
+ close(data.drm_fd);
}
}
--
2.25.1
More information about the igt-dev
mailing list