Skip to content

Commit

Permalink
s3:tests: Skip smbd error test if we do not log to stdout
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Andrew Bartlet <[email protected]>
  • Loading branch information
cryptomilk committed Mar 2, 2018
1 parent e01d7d9 commit c5857f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source3/script/tests/test_smbd_error.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@

. $(dirname $0)/../../../testprogs/blackbox/subunit.sh
failed=0

if [ $SMBD_DONT_LOG_STDOUT -eq 1 ]; then
subunit_start_test "check_panic_0"
subunit_skip_test "check_panic_0" <<EOF
logging to stdout disabled
EOF

testok $0 $failed
fi

error_inject_conf=$(dirname $SMB_CONF_PATH)/error_inject.conf

panic_count_0=$(grep -c PANIC $SMBD_TEST_LOG)
Expand Down

0 comments on commit c5857f1

Please sign in to comment.