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:
parent
f7eda6fe03
commit
36ccddf80e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue