selftests: gpio: gpio-sim: avoid forking test twice
Subsystems (3)
PATCH 1/1 selftests: gpio: gpio-sim: avoid forking test twice
Use '-o' within [] in order to avoid spawning two processes for test.
Suggested-by Andy Shevchenko <[email protected]>
Signed-off-by Bartosz Golaszewski <[email protected]>
--- tools/testing/selftests/gpio/gpio-sim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/gpio/gpio-sim.sh +1 -1
@@ -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
Signature · 1 line
2.30.1
Quoted 1 line · Bartosz Golaszewski
Use '-o' within [] in order to avoid spawning two processes for test.
Reviewed-by Andy Shevchenko <[email protected]>
Thanks!
Quoted 22 lines
Suggested-by Andy Shevchenko <[email protected]>Signed-off-by Bartosz Golaszewski <[email protected]>--- tools/testing/selftests/gpio/gpio-sim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/gpio/gpio-sim.sh +1
-1@@ -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 fiSignature · 1 line
2.30.1
Signature · 2 lines
With Best Regards, Andy Shevchenko