Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t 0/2] tests/kms_atomic_transition: IGT test cleanup
@ 2022-09-05  4:06 Bhanuprakash Modem
  2022-09-05  4:06 ` [igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Convert tests to dynamic Bhanuprakash Modem
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Bhanuprakash Modem @ 2022-09-05  4:06 UTC (permalink / raw)
  To: igt-dev, karthik.b.s

Convert all possible subtests to dynamic and sanitize the system
state before starting/exiting the subtest.

Bhanuprakash Modem (2):
  tests/kms_atomic_transition: Convert tests to dynamic
  tests/kms_atomic_transition: Test Cleanup

 tests/kms_atomic_transition.c | 371 +++++++++++++---------------------
 1 file changed, 137 insertions(+), 234 deletions(-)

--
2.35.1

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [igt-dev] [i-g-t 2/2] tests/kms_atomic_transition: Test cleanup
@ 2023-02-09  6:23 Bhanuprakash Modem
  2023-02-10  4:49 ` [igt-dev] [i-g-t V2 " Bhanuprakash Modem
  0 siblings, 1 reply; 16+ messages in thread
From: Bhanuprakash Modem @ 2023-02-09  6:23 UTC (permalink / raw)
  To: igt-dev, karthik.b.s

As we are using same function for cleanup, no need to do other
stuff, just return after unsetting the output to pipe.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/kms_atomic_transition.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index e1b74ac2c..6179232b5 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -714,6 +714,9 @@ static unsigned set_combinations(data_t *data, unsigned mask, struct igt_fb *fb)
 	for (i = 0; i < data->display.n_outputs; i++)
 		igt_output_set_pipe(&data->display.outputs[i], PIPE_NONE);
 
+	if (fb == NULL && !mask)
+		return event_mask;
+
 	for_each_pipe(&data->display, pipe) {
 		igt_plane_t *plane = igt_pipe_get_plane_type(&data->display.pipes[pipe],
 			DRM_PLANE_TYPE_PRIMARY);
-- 
2.39.0

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-02-10  6:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-05  4:06 [igt-dev] [i-g-t 0/2] tests/kms_atomic_transition: IGT test cleanup Bhanuprakash Modem
2022-09-05  4:06 ` [igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Convert tests to dynamic Bhanuprakash Modem
2022-09-06 12:53   ` Karthik B S
2022-09-05  4:06 ` [igt-dev] [i-g-t 2/2] tests/kms_atomic_transition: Test Cleanup Bhanuprakash Modem
2022-09-06 12:57   ` Karthik B S
2022-09-06 14:12   ` [igt-dev] [i-g-t V2 " Bhanuprakash Modem
2022-09-07  7:01     ` [igt-dev] [i-g-t " Bhanuprakash Modem
2022-09-07  8:45       ` Karthik B S
2022-09-05  4:44 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: IGT test cleanup Patchwork
2022-09-05  5:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-09-06 15:26 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: IGT test cleanup (rev2) Patchwork
2022-09-06 18:53 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-09-07  7:32 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: IGT test cleanup (rev3) Patchwork
2022-09-07  8:28 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-02-09  6:23 [igt-dev] [i-g-t 2/2] tests/kms_atomic_transition: Test cleanup Bhanuprakash Modem
2023-02-10  4:49 ` [igt-dev] [i-g-t V2 " Bhanuprakash Modem
2023-02-10  6:34   ` Karthik B S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox