File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66set -u
77
8- FORMAT_ARGS=" --indent=4 --func-next-line --case-indent"
8+ FORMAT_ARGS=" --simplify -- indent=4 --func-next-line --case-indent"
99FORMAT_CMD=" shfmt --list --write"
1010
1111# hardcoded to --posix due to .in filename and invalid shebang
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ output()
155155fail ()
156156{
157157 output " FAIL: $@ \n"
158- fail_count=$(( $ fail_count + 1 ))
158+ fail_count=$(( fail_count + 1 ))
159159}
160160
161161# print "all interface IP addresses" + "all routes"
@@ -386,7 +386,7 @@ for SUF in $TEST_RUN_LIST; do
386386 ovpn_init_check=0
387387 ovpn_init_success=1
388388 fi
389- ovpn_init_check=$(( $ ovpn_init_check - 1 ))
389+ ovpn_init_check=$(( ovpn_init_check - 1 ))
390390 done
391391
392392 opid=$( cat $pidfile )
Original file line number Diff line number Diff line change @@ -59,13 +59,13 @@ test_end()
5959 ;;
6060 esac
6161 e=1
62- tests_failed=$(( $ tests_failed + 1 ))
62+ tests_failed=$(( tests_failed + 1 ))
6363 else
6464 case $V in
6565 0 | 1) ;; # no per-test output for 'OK'
6666 * ) echo " OK" ;; # print all
6767 esac
68- tests_passed=$(( $ tests_passed + 1 ))
68+ tests_passed=$(( tests_passed + 1 ))
6969 fi
7070}
7171
Original file line number Diff line number Diff line change 162162# remove interface for good
163163$RUN_SUDO ip link del $IFACE
164164
165- for i in $( seq $(( $ LAST_AUTO_TEST + 1 )) ${LAST_TEST} ) ; do
165+ for i in $( seq $(( LAST_AUTO_TEST + 1 )) ${LAST_TEST} ) ; do
166166 $RUN_SUDO $UNIT_TEST $i
167167 if [ $? -ne 0 ]; then
168168 echo " unit-test $i errored out"
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ while [ $count -lt $server_max_wait ]; do
164164 continue
165165 fi
166166 if $RUN_SUDO kill -0 $server_pid > /dev/null 2>&1 ; then
167- servers_up=$(( $ servers_up + 1 ))
167+ servers_up=$(( servers_up + 1 ))
168168 fi
169169 done
170170
You can’t perform that action at this time.
0 commit comments