summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2021-12-14 09:06:51 +0100
committerBartosz Golaszewski <brgl@bgdev.pl>2021-12-17 12:26:13 +0100
commit36ccddf80e56b8c51604bafd449522a5271bfd35 (patch)
treefcb96c2f72e56043756b2c28905a156dd8b55f42 /tools/testing
parentselftests: gpio: gpio-sim: remove bashisms (diff)
downloadlinux-36ccddf80e56b8c51604bafd449522a5271bfd35.tar.xz
linux-36ccddf80e56b8c51604bafd449522a5271bfd35.zip
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>
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/selftests/gpio/gpio-sim.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/gpio/gpio-sim.sh b/tools/testing/selftests/gpio/gpio-sim.sh
index c913d5aec768..341e3de00896 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