tools: tests: use tabs for indentation consistently
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 28 May 2024 08:25:48 +0000 (10:25 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 29 May 2024 13:32:00 +0000 (15:32 +0200)
Replace all spaces used for indentation with tabs.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240528-fix-bash-tests-v3-1-e9b5be2ba8bf@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tools/gpio-tools-test.bash

index b55c5eb47c2c599ea036edef2052fde353bcebed..abb2f5dce2f164a94293866a6371d294d92c37d2 100755 (executable)
@@ -203,9 +203,9 @@ dut_run_redirect() {
 
 dut_read_redirect() {
        output=$(<$SHUNIT_TMPDIR/$DUT_OUTPUT)
-        local ORIG_IFS="$IFS"
-        IFS=$'\n' lines=($output)
-        IFS="$ORIG_IFS"
+       local ORIG_IFS="$IFS"
+       IFS=$'\n' lines=($output)
+       IFS="$ORIG_IFS"
 }
 
 dut_read() {
@@ -269,12 +269,12 @@ dut_wait() {
 }
 
 dut_cleanup() {
-        if [ -n "$DUT_PID" ]
-        then
+       if [ -n "$DUT_PID" ]
+       then
                kill -SIGTERM $DUT_PID 2> /dev/null
                wait $DUT_PID || false
-        fi
-        rm -f $SHUNIT_TMPDIR/$DUT_OUTPUT
+       fi
+       rm -f $SHUNIT_TMPDIR/$DUT_OUTPUT
 }
 
 tearDown() {