]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat test_success.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:11 +0000 (15:34 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Jun 2022 01:28:29 +0000 (01:28 +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_success.sh

index fe63fb51a9faf79e2bd13f4380c4848528adeaf8..7ba8ddbef5970db73c3d96ed48602b4ed6d42cee 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # Copyright (C) 2011 Michael Adam <obnox@samba.org>
 
-incdir=`dirname $0`/../../../testprogs/blackbox
+incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
 
 failed=0
@@ -15,8 +15,7 @@ test_success()
 }
 
 testit "success" \
-       test_success || \
-       failed=`expr $failed + 1`
+       test_success ||
+       failed=$(expr $failed + 1)
 
 testok $0 $failed
-