diff options
author | Andreas Schneider <asn@samba.org> | 2022-02-23 12:04:57 +0100 |
---|---|---|
committer | Pavel Filipensky <pfilipensky@samba.org> | 2022-07-08 09:59:19 +0000 |
commit | c4c086ecc00899741d114e6dc51b5cfcfd1d0707 (patch) | |
tree | 7730c6969f99aaa489f300dc95685acd596c0fb8 /source4/utils | |
parent | beaac6bb2bf8a45b7b9ef951f54710be948318f4 (diff) | |
download | samba-c4c086ecc00899741d114e6dc51b5cfcfd1d0707.tar.gz |
s4:utils: Reformat shell scripts
shfmt -f source4/utils/ | xargs shfmt -w -p -i 0 -fn
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Fri Jul 8 09:59:19 UTC 2022 on sn-devel-184
Diffstat (limited to 'source4/utils')
-rwxr-xr-x | source4/utils/tests/test_nmblookup.sh | 5 | ||||
-rwxr-xr-x | source4/utils/tests/test_samba_tool.sh | 7 | ||||
-rwxr-xr-x | source4/utils/tests/test_smbclient.sh | 5 |
3 files changed, 10 insertions, 7 deletions
diff --git a/source4/utils/tests/test_nmblookup.sh b/source4/utils/tests/test_nmblookup.sh index 5e4fcfb4069..db2686e35b1 100755 --- a/source4/utils/tests/test_nmblookup.sh +++ b/source4/utils/tests/test_nmblookup.sh @@ -11,7 +11,8 @@ TORTURE_OPTIONS=$* failed=0 -testit() { +testit() +{ name="$1" shift cmdline="$*" @@ -22,7 +23,7 @@ testit() { echo "success: $name" else echo "failure: $name" - failed=`expr $failed + 1` + failed=$(expr $failed + 1) fi return $status } diff --git a/source4/utils/tests/test_samba_tool.sh b/source4/utils/tests/test_samba_tool.sh index d2548d04689..d45a2333ed1 100755 --- a/source4/utils/tests/test_samba_tool.sh +++ b/source4/utils/tests/test_samba_tool.sh @@ -14,7 +14,8 @@ failed=0 samba4bindir="$BINDIR" samba_tool="$samba4bindir/samba-tool" -testit() { +testit() +{ name="$1" shift cmdline="$*" @@ -25,7 +26,7 @@ testit() { echo "success: $name" else echo "failure: $name" - failed=`expr $failed + 1` + failed=$(expr $failed + 1) fi return $status } @@ -34,7 +35,7 @@ testit "Test login with --machine-pass without kerberos" $VALGRIND $smbclient -c testit "Test login with --machine-pass and kerberos" $VALGRIND $smbclient -c 'ls' $CONFIGURATION //$SERVER/tmp --machine-pass -k -testit "time" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@ +testit "time" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@ testit "domain level.show" $VALGRIND $PYTHON $samba_tool domain level show diff --git a/source4/utils/tests/test_smbclient.sh b/source4/utils/tests/test_smbclient.sh index 1a592518f57..9b3e8dc76b6 100755 --- a/source4/utils/tests/test_smbclient.sh +++ b/source4/utils/tests/test_smbclient.sh @@ -11,7 +11,8 @@ shift 6 failed=0 -testit() { +testit() +{ name="$1" shift cmdline="$*" @@ -22,7 +23,7 @@ testit() { echo "success: $name" else echo "failure: $name" - failed=`expr $failed + 1` + failed=$(expr $failed + 1) fi return $status } |