]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat test_smbd_error.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_smbd_error.sh

index e93dff2d6a7fbc3a1224b2b61cd55c9884aaba98..d39b1744df4d3b3c7caf5033abf35f2029ecfc91 100755 (executable)
@@ -29,13 +29,13 @@ panic_count_0=$(grep -c PANIC $SMBD_TEST_LOG)
 
 # As a panic is expected here, also overwrite the default "panic
 # action" in selftest to not start a debugger
-echo 'error_inject:chdir = panic' > $error_inject_conf
-echo '[global]' >> $error_inject_conf
-echo 'panic action = ""' >> $error_inject_conf
+echo 'error_inject:chdir = panic' >$error_inject_conf
+echo '[global]' >>$error_inject_conf
+echo 'panic action = ""' >>$error_inject_conf
 
 testit_expect_failure "smbclient" $VALGRIND \
-                     $BINDIR/smbclient //$SERVER_IP/error_inject \
-                     -U$USERNAME%$PASSWORD  -c dir ||
+       $BINDIR/smbclient //$SERVER_IP/error_inject \
+       -U$USERNAME%$PASSWORD -c dir ||
        failed=$(expr $failed + 1)
 
 rm $error_inject_conf
@@ -49,11 +49,11 @@ testit "check_panic_1" test $(expr $panic_count_0 + 1) -eq $panic_count_1 ||
 # Verify that a failing chdir vfs call does not result in a smbd panic
 #
 
-echo 'error_inject:chdir = ESTALE' > $error_inject_conf
+echo 'error_inject:chdir = ESTALE' >$error_inject_conf
 
 testit_expect_failure "smbclient" $VALGRIND \
-                     $BINDIR/smbclient //$SERVER_IP/error_inject \
-                     -U$USERNAME%$PASSWORD  -c dir ||
+       $BINDIR/smbclient //$SERVER_IP/error_inject \
+       -U$USERNAME%$PASSWORD -c dir ||
        failed=$(expr $failed + 1)
 
 panic_count_2=$(grep -c PANIC $SMBD_TEST_LOG)