3 # Verify that 'ctdb getdebug' works as expected
5 . "${TEST_SCRIPTS_DIR}/integration.bash"
11 try_command_on_node 0 "$CTDB listnodes | wc -l"
14 try_command_on_node -v 1 "onnode -q all $CTDB getdebug"
15 getdebug_onnode="$out"
19 '^(ERROR|WARNING|NOTICE|INFO|DEBUG)$'
23 while [ $n -lt $num_nodes ] ; do
24 cmd="${cmd}${cmd:+; }$CTDB getdebug -n $n"
27 try_command_on_node -v 1 "$cmd"
30 if [ "$getdebug_onnode" = "$getdebug_n" ] ; then
31 echo "They're the same... cool!"
33 die "Error: they differ."
40 t=$(echo "$line" | sed -r -e 's@Node [[:digit:]]+ is at debug level ([[:alpha:]]+) \((-?[[:digit:]]+)\)$@\|\1\|\2|@')
41 seps="${seps}${seps:+${nl}}|Name|Level|${nl}${t}"
42 done <<<"$getdebug_onnode"