[PATCH i-g-t] tests/amdgpu/amd_abm: Skip the test if panel does not support ABM

Alex Hung alex.hung at amd.com
Wed Feb 26 19:00:28 UTC 2025


Reviewed-by: Alex Hung <alex.hung at amd.com>

On 2/26/25 03:09, Tom Chung wrote:
> [Why & How]
> Skip the ABM test if this panel does not support ABM.
> 
> Signed-off-by: Tom Chung <chiahsuan.chung at 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));



More information about the igt-dev mailing list