]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat test_aio_outstanding.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:08 +0000 (15:34 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 2 May 2022 23:15:37 +0000 (23:15 +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_aio_outstanding.sh

index 4f68d3bb62023215c062dd59a99c62f708c86139..66616e990005d94c69f71cb66e0e328bc44df677 100755 (executable)
@@ -8,9 +8,9 @@
 # with 2 second delays on pread/pwrite.
 
 if [ $# -lt 4 ]; then
-    echo Usage: test_aio_outstanding.sh \
-        SERVERCONFFILE SMBCLIENT IP aio_delay_inject_sharename
-exit 1
+       echo Usage: test_aio_outstanding.sh \
+               SERVERCONFFILE SMBCLIENT IP aio_delay_inject_sharename
+       exit 1
 fi
 
 CONF=$1
@@ -42,15 +42,16 @@ mkfifo smbclient-stdin smbclient-stdout smbclient-stderr
 rm aio_outstanding_testfile
 head -c 20MB /dev/zero >aio_outstanding_testfile
 
-CLI_FORCE_INTERACTIVE=1; export CLI_FORCE_INTERACTIVE
+CLI_FORCE_INTERACTIVE=1
+export CLI_FORCE_INTERACTIVE
 
 ${SMBCLIENT} //${SERVER}/${SHARE} ${CONF} -U${USER}%${PASSWORD} \
-            < smbclient-stdin > smbclient-stdout 2>smbclient-stderr &
+       <smbclient-stdin >smbclient-stdout 2>smbclient-stderr &
 CLIENT_PID=$!
 
 sleep 1
 
-exec 100>smbclient-stdin  101<smbclient-stdout 102<smbclient-stderr
+exec 100>smbclient-stdin 101<smbclient-stdout 102<smbclient-stderr
 
 # consume the smbclient startup messages
 head -n 1 <&101
@@ -79,11 +80,11 @@ rm -f smbclient-stdin smbclient-stdout smbclient-stderr aio_outstanding_testfile
 mkfifo smbclient-stdin smbclient-stdout
 
 ${SMBCLIENT} //${SERVER}/${SHARE} ${CONF} -U${USER}%${PASSWORD} \
-            < smbclient-stdin > smbclient-stdout &
+       <smbclient-stdin >smbclient-stdout &
 
 sleep 1
 
-exec 100>smbclient-stdin  101<smbclient-stdout
+exec 100>smbclient-stdin 101<smbclient-stdout
 
 echo "del aio_outstanding_testfile" >&100
 echo "exit" >&100
@@ -93,6 +94,6 @@ sleep 2
 rm -f smbclient-stdin smbclient-stdout aio_outstanding_testfile
 
 testit "check_panic" test $panic_count_0 -eq $panic_count_1 ||
-        failed=$(expr $failed + 1)
+       failed=$(expr $failed + 1)
 
 testok $0 $failed