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>
This commit is contained in:
Bartosz Golaszewski 2021-12-14 09:06:51 +01:00
parent f7eda6fe03
commit 36ccddf80e
1 changed files with 1 additions and 1 deletions

View File

@ -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