Skip to content

Commit

Permalink
cukinia: differentiate cukinia_gpio_* tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kevlhop committed Mar 11, 2024
1 parent b3f67ef commit 432ca3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cukinia
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 432ca3a

Please sign in to comment.