From: Bartosz Golaszewski Date: Tue, 14 Dec 2021 08:06:51 +0000 (+0100) Subject: selftests: gpio: gpio-sim: avoid forking test twice X-Git-Tag: v6.6.17~8463^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36ccddf80e56b8c51604bafd449522a5271bfd35;p=platform%2Fkernel%2Flinux-rpi.git selftests: gpio: gpio-sim: avoid forking test twice Use '-o' within [] in order to avoid spawning two processes for test. Suggested-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- diff --git a/tools/testing/selftests/gpio/gpio-sim.sh b/tools/testing/selftests/gpio/gpio-sim.sh index c913d5a..341e3de 100755 --- a/tools/testing/selftests/gpio/gpio-sim.sh +++ b/tools/testing/selftests/gpio/gpio-sim.sh @@ -23,7 +23,7 @@ remove_chip() { for FILE in $CONFIGFS_DIR/$CHIP/*; do BANK=`basename $FILE` - if [ "$BANK" = "live" ] || [ "$BANK" = "dev_name" ]; then + if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then continue fi