Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_plane:Add more logs to skips/failure
@ 2024-11-21 12:42 Pranay Samala
  2024-11-21 16:23 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pranay Samala @ 2024-11-21 12:42 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, swati2.sharma, sameer.lattannavar, pranay.samala

Having some logs for test failures and skips would
make debugging much easier.

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/kms_plane.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 77a669dc5..383149564 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -293,8 +293,11 @@ test_plane_position_with_output(data_t *data,
 	create_fb_for_mode(data, mode, &green, &rect, 1, &primary_fb);
 	igt_plane_set_fb(primary, &primary_fb);
 
-	if (!igt_plane_has_format_mod(sprite, DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR))
+	if (!igt_plane_has_format_mod(sprite, DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR)) {
+		igt_info("plane-%d does not supports XRGB format and Linear modifier\n",
+			 sprite->index);
 		return;
+	}
 
 	igt_create_color_fb(data->drm_fd,
 			    64, 64, /* width, height */
@@ -493,7 +496,7 @@ test_plane_panning(data_t *data, enum pipe pipe)
 		mode_found = true;
 		break;
 	}
-	igt_require(mode_found);
+	igt_require_f(mode_found, "All connector modes are skipped due to low memory\n");
 
 	if (data->flags & TEST_PANNING_TOP_LEFT)
 		test_grab_crc(data, output, pipe, &red, data->flags, &ref_crc);
@@ -1263,13 +1266,14 @@ static void test_planar_settings(data_t *data)
 	 * If here is added non-intel tests below require will need to be
 	 * changed to if(..)
 	 */
-	igt_require(data->display.is_atomic);
+	igt_require_f(data->display.is_atomic, "Atomic mode-set not supported\n");
 	igt_require_intel(data->drm_fd);
 	devid = intel_get_drm_devid(data->drm_fd);
-	igt_require(intel_display_ver(devid) >= 9);
+	igt_require_f(intel_display_ver(devid) >= 9, "Requires Intel display version 9 or above\n");
 
 	output = igt_get_single_output_for_pipe(&data->display, pipe);
-	igt_require(output);
+	igt_require_f(output, "Output-%s is not compatible with pipe-%s\n",
+		      data->output->name, kmstest_pipe_name(pipe));
 
 	igt_output_set_pipe(output, pipe);
 	primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
-- 
2.34.1


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

end of thread, other threads:[~2024-11-22  5:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21 12:42 [PATCH i-g-t] tests/kms_plane:Add more logs to skips/failure Pranay Samala
2024-11-21 16:23 ` ✓ Xe.CI.BAT: success for " Patchwork
2024-11-21 16:38 ` ✗ i915.CI.BAT: failure " Patchwork
2024-11-22  0:26 ` ✗ Xe.CI.Full: " Patchwork
2024-11-22  5:51 ` [PATCH i-g-t] " B, Jeevan

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