From: Mohammed Thasleem <mohammed.thasleem@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/kms_lease: Terminate lease on bad connector id
Date: Sat, 30 Apr 2022 07:13:47 +0530 [thread overview]
Message-ID: <20220430014347.94210-1-mohammed.thasleem@intel.com> (raw)
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
next reply other threads:[~2023-05-31 10:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-30 1:43 Mohammed Thasleem [this message]
2023-05-31 12:33 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_lease: Terminate lease on bad connector id 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220430014347.94210-1-mohammed.thasleem@intel.com \
--to=mohammed.thasleem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox