Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_lease: Terminate lease on bad connector id
@ 2022-04-30  1:43 Mohammed Thasleem
  2023-05-31 12:33 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mohammed Thasleem @ 2022-04-30  1:43 UTC (permalink / raw)
  To: igt-dev

igt_skip_on make resource busy for sub sequence tests.
To avoid this terminate the lease on bad connector id.

Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com>
---
 tests/kms_lease.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/kms_lease.c b/tests/kms_lease.c
index 29a774ae8..03538cf8c 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -682,6 +682,10 @@ static void lease_unleased_connector(data_t *data)
 			bad_connector_id = data->master.display.outputs[o].id;
 	}
 
+	/* Terminate lease on bad connector id before skip. */
+	if (bad_connector_id == 0)
+		terminate_lease(&lease);
+
 	/* Give up if there isn't another connector */
 	igt_skip_on(bad_connector_id == 0);
 
-- 
2.25.1

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

end of thread, other threads:[~2023-06-08  5:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-30  1:43 [igt-dev] [PATCH i-g-t] tests/kms_lease: Terminate lease on bad connector id Mohammed Thasleem
2023-05-31 12:33 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-06-01 20:26 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-08  5:42 ` [igt-dev] [PATCH i-g-t] " Nautiyal, Ankit K
2023-06-08  5:51   ` Nautiyal, Ankit K

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