From 6aaf527fc8a9f7125efd16b104b3261bad291ca5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 22 Apr 2022 15:34:08 +0200 Subject: [PATCH] s3:tests: Reformat test_aio_outstanding.sh shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- source3/script/tests/test_aio_outstanding.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/source3/script/tests/test_aio_outstanding.sh b/source3/script/tests/test_aio_outstanding.sh index 4f68d3bb620..66616e99000 100755 --- a/source3/script/tests/test_aio_outstanding.sh +++ b/source3/script/tests/test_aio_outstanding.sh @@ -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-stdout 2>smbclient-stderr & CLIENT_PID=$! sleep 1 -exec 100>smbclient-stdin 101smbclient-stdin 101 smbclient-stdout & + smbclient-stdout & sleep 1 -exec 100>smbclient-stdin 101smbclient-stdin 101&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