From: Andreas Schneider Date: Fri, 22 Apr 2022 13:34:11 +0000 (+0200) Subject: s3:tests: Reformat test_smbd_error.sh X-Git-Tag: tevent-0.13.0~401 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0754d46cd1a9fa9250dc0a2db42477060002a33a;p=thirdparty%2Fsamba.git s3:tests: Reformat test_smbd_error.sh shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/script/tests/test_smbd_error.sh b/source3/script/tests/test_smbd_error.sh index e93dff2d6a7..d39b1744df4 100755 --- a/source3/script/tests/test_smbd_error.sh +++ b/source3/script/tests/test_smbd_error.sh @@ -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)