From: Pranay Samala <pranay.samala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: karthik.b.s@intel.com, bhanuprakash.modem@intel.com,
sameer.lattannavar@intel.com, pranay.samala@intel.com
Subject: [PATCH i-g-t] tests/kms_3d: Add more logs to skips/failure
Date: Wed, 6 Nov 2024 16:06:22 +0530 [thread overview]
Message-ID: <20241106103622.1840431-1-pranay.samala@intel.com> (raw)
Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
tests/kms_3d.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/tests/kms_3d.c b/tests/kms_3d.c
index ad6c45e9b..f1726b71e 100644
--- a/tests/kms_3d.c
+++ b/tests/kms_3d.c
@@ -55,7 +55,8 @@ igt_simple_main
res = drmModeGetResources(drm_fd);
igt_require(res);
- igt_assert(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_STEREO_3D, 1) >= 0);
+ igt_assert_f(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_STEREO_3D, 1) >= 0,
+ "Failed to enable STEREO_3D capability.\n");
/* find an hdmi connector */
for (int i = 0; i < res->count_connectors; i++) {
@@ -65,7 +66,7 @@ igt_simple_main
drmModeFreeConnector(connector);
connector = NULL;
}
- igt_require(connector);
+ igt_require_f(connector, "No HDMI connector found.\n");
kmstest_unset_all_crtcs(drm_fd, res);
@@ -85,7 +86,7 @@ igt_simple_main
mode_count++;
}
- igt_assert(mode_count);
+ igt_assert_f(mode_count, "3D modes not detected.\n");
/* set 3D modes */
igt_info("Testing:\n");
@@ -95,8 +96,12 @@ igt_simple_main
int crtc_mask = -1;
int ret;
- if (!(connector->modes[i].flags & DRM_MODE_FLAG_3D_MASK))
+ if (!(connector->modes[i].flags & DRM_MODE_FLAG_3D_MASK)) {
+ igt_info("%s-%d: Doesn't support 3D MASK.\n",
+ kmstest_connector_type_str(connector->connector_type),
+ connector->connector_type_id);
continue;
+ }
/* create a configuration */
ret = kmstest_get_connector_config(drm_fd, connector_id,
--
2.34.1
next reply other threads:[~2024-11-06 10:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-06 10:36 Pranay Samala [this message]
2024-11-06 12:18 ` ✓ Fi.CI.BAT: success for tests/kms_3d: Add more logs to skips/failure (rev5) Patchwork
2024-11-06 12:42 ` ✓ CI.xeBAT: " Patchwork
2024-11-06 14:45 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-11-07 16:17 ` ✗ CI.xeFULL: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-08-05 6:47 [PATCH i-g-t] tests/kms_3d: Add more logs to skips/failure Pranay Samala
2024-08-20 4:54 ` B, Jeevan
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=20241106103622.1840431-1-pranay.samala@intel.com \
--to=pranay.samala@intel.com \
--cc=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@intel.com \
--cc=sameer.lattannavar@intel.com \
/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