]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat test_rpcclient_netsessenum.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:10 +0000 (15:34 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 8 Jun 2022 13:14:47 +0000 (13:14 +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>
source3/script/tests/test_rpcclient_netsessenum.sh

index 9abb3ae3db537220cb243747d15059603b840771..1d045431d1eefcdde2db5bb4de1837f4e4587953 100755 (executable)
@@ -5,10 +5,10 @@
 # Copyright (C) 2018 Christof Schmitt
 
 if [ $# -lt 6 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: $0 DOMAIN ADMIN_USER ADMIN_PASSWORD SERVER RPCCLIENT SMBTORTURE3 SHARE
 EOF
-exit 1;
+       exit 1
 fi
 
 DOMAIN="$1"
@@ -37,7 +37,7 @@ testit "netsessenum" test $RC = 0 || failed=$(expr $failed + 1)
 OUT=$($RPCCLIENTCMD -c NetSessEnum | grep Received)
 test "$OUT" = "Received 1 entries."
 RC=$?
-testit "count1" test $RC -eq 0  || failed=$(expr $failed + 1)
+testit "count1" test $RC -eq 0 || failed=$(expr $failed + 1)
 
 #
 # Inject smbd crash
@@ -50,6 +50,6 @@ $SMBTORTURE3 //"$SERVER"/"$SHARE" "$USERPASS" CLEANUP1
 OUT=$($RPCCLIENTCMD -c NetSessEnum | grep Received)
 test "$OUT" = "Received 1 entries."
 RC=$?
-testit "count2" test $RC -eq 0  || failed=$(expr $failed + 1)
+testit "count2" test $RC -eq 0 || failed=$(expr $failed + 1)
 
 testok $0 $failed