From 432ca3a68188711754e83c5880c605aad54fb62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20L=27h=C3=B4pital?= Date: Fri, 8 Mar 2024 16:36:05 +0100 Subject: [PATCH] cukinia: differentiate cukinia_gpio_* tests When launching cukinia_gpio_* tests on different gpiochips, then test description was the same. To easily differentiate the different tests, add gpiochip information in the default output. --- cukinia | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cukinia b/cukinia index 7f3dc17..2ee310f 100755 --- a/cukinia +++ b/cukinia @@ -770,7 +770,7 @@ _cukinia_gpio_libgpiod() shift done - _cukinia_prepare "Checking if gpio pins are well configured via libgpiod" + _cukinia_prepare "Checking if $gpiochip pins are well configured via libgpiod" if [ -n "$input_pins" ]; then for pin in $input_pins; do direction=$(gpioinfo "$gpiochip" | grep -E "line +$pin:" | sed 's/ \+/\//g' | cut -d '/' -f5) @@ -837,7 +837,7 @@ _cukinia_gpio_sysfs() shift done - _cukinia_prepare "Checking if gpio pins are well configured via sysfs" + _cukinia_prepare "Checking if $gpiochip pins are well configured via sysfs" if [ -n "$input_pins" ]; then for pin in $input_pins; do echo "$pin" > /sys/class/gpio/export