s3:tests: Reformat test_smbclient_ntlm.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:11 +0000 (15:34 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 10 Jun 2022 14:51:39 +0000 (14:51 +0000)
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Jun 10 14:51:39 UTC 2022 on sn-devel-184

source3/script/tests/test_smbclient_ntlm.sh

index 09c06deffbb8b0d74e3b39d3e3f790b45493ca06..d3e42dfb7f0ef329eea4eaa9e5fc5f82b0263671 100755 (executable)
@@ -3,10 +3,10 @@
 # this runs a smbclient based authentication tests
 
 if [ $# -lt 6 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: test_smbclient_ntlm.sh SERVER USERNAME PASSWORD MAPTOGUEST SMBCLIENT PROTOCOL <smbclient arguments>
 EOF
-exit 1;
+       exit 1
 fi
 
 SERVER="$1"
@@ -19,14 +19,14 @@ SMBCLIENT="$VALGRIND ${SMBCLIENT}"
 shift 6
 ADDARGS="$*"
 
-incdir=`dirname $0`/../../../testprogs/blackbox
+incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
 
 if [ $PROTOCOL != "SMB3" -a $PROTOCOL != "NT1" ]; then
-cat <<EOF
+       cat <<EOF
 Uexpected protocol specified $PROTOCOL
 EOF
-       exit 1;
+       exit 1
 fi
 
 if [ $PROTOCOL = "NT1" ]; then
@@ -44,7 +44,7 @@ fi
 if [ $PROTOCOL = "SMB3" ]; then
        testit "smbclient anonymous.nopassword.SMB3" $SMBCLIENT //$SERVER/IPC\$ $CONFIGURATION -U% -mSMB3 -c quit $ADDARGS
 fi
-if test x"${MAPTOGUEST}" = x"never" ; then
+if test x"${MAPTOGUEST}" = x"never"; then
        if [ $PROTOCOL = "NT1" ]; then
                testit_expect_failure "smbclient anonymous.badpassword.NT1NEW.fail" $SMBCLIENT //$SERVER/IPC\$ $CONFIGURATION -U%badpassword -mNT1 -c quit $ADDARGS
        fi