s3:tests: Reformat test_net_misc.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:09 +0000 (15:34 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 8 Jun 2022 06:38:30 +0000 (06:38 +0000)
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/script/tests/test_net_misc.sh

index cc8781c355b4a9f0975f13ff451ac6265e95e02c..94842182f664a73b340a1f6c9614b7018f1c7425 100755 (executable)
@@ -3,10 +3,10 @@
 # various tests for the "net" command
 
 if [ $# -lt 3 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: test_net_misc.sh SCRIPTDIR SERVERCONFFILE NET CONFIGURATION
 EOF
-exit 1;
+       exit 1
 fi
 
 SCRIPTDIR="$1"
@@ -26,7 +26,7 @@ NETTIME="${NET}   --option=clientmaxprotocol=${PROTOCOL} time"
 NETLOOKUP="${NET} --option=clientmaxprotocol=${PROTOCOL} lookup"
 NETSHARE="${NET} -U${USERNAME}%${PASSWORD} --option=clientmaxprotocol=${PROTOCOL} -S ${SERVER} share"
 
-incdir=`dirname $0`/../../../testprogs/blackbox
+incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
 
 failed=0
@@ -53,29 +53,28 @@ test_share()
 }
 
 testit "get the time" \
-       test_time || \
-       failed=`expr $failed + 1`
+       test_time ||
+       failed=$(expr $failed + 1)
 
 testit "get the system time" \
-       test_time system || \
-       failed=`expr $failed + 1`
+       test_time system ||
+       failed=$(expr $failed + 1)
 
 testit "get the time zone" \
-       test_time zone || \
-       failed=`expr $failed + 1`
+       test_time zone ||
+       failed=$(expr $failed + 1)
 
 testit "lookup the PDC" \
-       test_lookup pdc || \
-       failed=`expr $failed + 1`
+       test_lookup pdc ||
+       failed=$(expr $failed + 1)
 
 testit "lookup the master browser" \
-       test_lookup master || \
-       failed=`expr $failed + 1`
+       test_lookup master ||
+       failed=$(expr $failed + 1)
 
 # This test attempts to lookup shares
 testit "lookup share list" \
-       test_share list || \
-       failed=`expr $failed + 1`
+       test_share list ||
+       failed=$(expr $failed + 1)
 
 testok $0 $failed
-