mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
100a0eed90
The current logic is horrible and creates an unnecessary file. Let's make the script debug level independent of ctddb's debug level. * Have debug() use $CTDB_SCRIPT_DEBUGLEVEL directly * Remove ctdb_set_current_debuglevel() * Remove the "getdebug" command from ctdb stub in eventscript unit tests * Update relevant eventscript unit tests to use $CTDB_SCRIPT_DEBUGLEVEL Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 85efa446c7f5c5af1c3a960001aa777775ae562f)
18 lines
306 B
Bash
Executable File
18 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "port 139 down, default tcp checker, debug"
|
|
|
|
export CTDB_SCRIPT_DEBUGLEVEL=4
|
|
|
|
setup_samba
|
|
tcp_port_down 139
|
|
|
|
required_result 1 <<EOF
|
|
ERROR: samba tcp port 139 is not responding
|
|
DEBUG: "ctdb checktcpport 139" was able to bind to port
|
|
EOF
|
|
|
|
simple_test
|