Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/amdgpu/amd_abm: Skip the test if panel does not support ABM
@ 2025-02-26 10:09 Tom Chung
  2025-02-26 19:00 ` Alex Hung
  2025-02-27 13:46 ` ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Tom Chung @ 2025-02-26 10:09 UTC (permalink / raw)
  To: igt-dev; +Cc: alex.hung, sunpeng.li, chiahsuan.chung

[Why & How]
Skip the ABM test if this panel does not support ABM.

Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
---
 tests/amdgpu/amd_abm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/amdgpu/amd_abm.c b/tests/amdgpu/amd_abm.c
index 8f7f489ad..13274aa4c 100644
--- a/tests/amdgpu/amd_abm.c
+++ b/tests/amdgpu/amd_abm.c
@@ -191,7 +191,7 @@ static void set_abm_level(data_t *data, igt_output_t *output, int level)
 
 	fd = open(buf, O_WRONLY);
 
-	igt_assert(fd != -1);
+	igt_skip_on_f(fd == -1, "Cannot find %s. Is it an OLED?\n", buf);
 
 	igt_assert_eq(snprintf(buf, sizeof(buf), "%d", level),
 		      write(fd, buf, 1));
-- 
2.43.0


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

end of thread, other threads:[~2025-02-27 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 10:09 [PATCH i-g-t] tests/amdgpu/amd_abm: Skip the test if panel does not support ABM Tom Chung
2025-02-26 19:00 ` Alex Hung
2025-02-27 13:46 ` ✗ Fi.CI.BAT: failure for " Patchwork

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