From: Andreas Schneider Date: Fri, 22 Apr 2022 13:34:10 +0000 (+0200) Subject: s3:tests: Reformat test_smbclient_basic.sh X-Git-Tag: tevent-0.13.0~437 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c112b07337ea1aba43802529c71fa9aec708bcf3;p=thirdparty%2Fsamba.git s3:tests: Reformat test_smbclient_basic.sh shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- diff --git a/source3/script/tests/test_smbclient_basic.sh b/source3/script/tests/test_smbclient_basic.sh index 357d7ab5219..6e2a17caf46 100755 --- a/source3/script/tests/test_smbclient_basic.sh +++ b/source3/script/tests/test_smbclient_basic.sh @@ -3,10 +3,10 @@ # this runs the file serving tests that are expected to pass with samba3 against shares with various options if [ $# -lt 5 ]; then -cat < EOF -exit 1; + exit 1 fi SERVER="$1" @@ -18,21 +18,21 @@ CONFIGURATION="$6" shift 6 ADDARGS="$@" -incdir=`dirname $0`/../../../testprogs/blackbox +incdir=$(dirname $0)/../../../testprogs/blackbox . $incdir/subunit.sh . $incdir/common_test_fns.inc # TEST using \ as the separator (default) -test_smbclient "smbclient as $DOMAIN\\$USERNAME" 'ls' "//$SERVER/tmp" -U$DOMAIN\\$USERNAME%$PASSWORD $ADDARGS || failed=`expr $failed + 1` +test_smbclient "smbclient as $DOMAIN\\$USERNAME" 'ls' "//$SERVER/tmp" -U$DOMAIN\\$USERNAME%$PASSWORD $ADDARGS || failed=$(expr $failed + 1) # TEST using / as the separator (default) -test_smbclient "smbclient as $DOMAIN/$USERNAME" 'ls' "//$SERVER/tmp" -U$DOMAIN/$USERNAME%$PASSWORD $ADDARGS || failed=`expr $failed + 1` +test_smbclient "smbclient as $DOMAIN/$USERNAME" 'ls' "//$SERVER/tmp" -U$DOMAIN/$USERNAME%$PASSWORD $ADDARGS || failed=$(expr $failed + 1) # TEST using 'winbind separator = +' -test_smbclient "smbclient as $DOMAIN+$USERNAME" 'ls' "//$SERVER/tmp" -U$DOMAIN+$USERNAME%$PASSWORD $ADDARGS --option=winbindseparator=+ || failed=`expr $failed + 1` +test_smbclient "smbclient as $DOMAIN+$USERNAME" 'ls' "//$SERVER/tmp" -U$DOMAIN+$USERNAME%$PASSWORD $ADDARGS --option=winbindseparator=+ || failed=$(expr $failed + 1) # TEST using 'winbind separator = +' set in a config file smbclient_config="$PREFIX/tmpsmbconf" -cat > $smbclient_config <$smbclient_config <