s3:tests: Reformat test_pthreadpool.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_pthreadpool.sh

index b1c7c6da11cffcc448d2ce821e8746f4f1088ceb..b3d24f79a1a067e70a445cc961551810c57a9fd4 100755 (executable)
@@ -1,20 +1,20 @@
 #!/bin/sh
 
-incdir=`dirname $0`/../../../testprogs/blackbox
+incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
 
-if [ ! -x $BINDIR/pthreadpooltest ] ; then
-    # Some machines don't have /bin/true, simulate it
-    cat >$BINDIR/pthreadpooltest <<EOF
+if [ ! -x $BINDIR/pthreadpooltest ]; then
+       # Some machines don't have /bin/true, simulate it
+       cat >$BINDIR/pthreadpooltest <<EOF
 #!/bin/sh
 exit 0
 EOF
-    chmod +x $BINDIR/pthreadpooltest
+       chmod +x $BINDIR/pthreadpooltest
 fi
 
 failed=0
 
 testit "pthreadpool" $VALGRIND $BINDIR/pthreadpooltest ||
-       failed=`expr $failed + 1`
+       failed=$(expr $failed + 1)
 
 testok $0 $failed