Skip to content

Commit

Permalink
s3:tests: Reformat test_smbd_error.sh
Browse files Browse the repository at this point in the history
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
cryptomilk authored and abartlet committed Jun 17, 2022
1 parent 42e96b6 commit 0754d46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source3/script/tests/test_smbd_error.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 0754d46

Please sign in to comment.