Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: gpio: gpio-sim: avoid forking test twice

Use '-o' within [] in order to avoid spawning two processes for test.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

+1 -1
+1 -1
tools/testing/selftests/gpio/gpio-sim.sh
··· 23 23 24 24 for FILE in $CONFIGFS_DIR/$CHIP/*; do 25 25 BANK=`basename $FILE` 26 - if [ "$BANK" = "live" ] || [ "$BANK" = "dev_name" ]; then 26 + if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then 27 27 continue 28 28 fi 29 29