From: Martin Schwenke Date: Thu, 8 Mar 2018 03:33:08 +0000 (+1100) Subject: ctdb-tests: Remove unused function get_ctdbd_command_line_option() X-Git-Tag: talloc-2.1.12~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=346c28d070fd7df0bbee9c70bbad80d35eae3658;p=thirdparty%2Fsamba.git ctdb-tests: Remove unused function get_ctdbd_command_line_option() This was a bad idea. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index f159d0ef7be..0d5a5513e12 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -590,27 +590,6 @@ ctdb_restart_when_done () ctdb_test_restart_scheduled=true } -get_ctdbd_command_line_option () -{ - local pnn="$1" - local option="$2" - - try_command_on_node "$pnn" "$CTDB getpid" || \ - die "Unable to get PID of ctdbd on node $pnn" - - local pid="${out#*:}" - try_command_on_node "$pnn" "ps -p $pid -o args hww" || \ - die "Unable to get command-line of PID $pid" - - # Strip everything up to and including --option - local t="${out#*--${option}}" - # Strip leading '=' or space if present - t="${t#=}" - t="${t# }" - # Strip any following options and print - echo "${t%% -*}" -} - ctdb_base_show () { echo "${CTDB_BASE:-${CTDB_SCRIPTS_BASE}}"