From: Thomas Markwalder Date: Mon, 21 Dec 2015 15:14:10 +0000 (-0500) Subject: [4249] Fixed naming issue in dhcp_test_lib.sh.in X-Git-Tag: trac4263_base~8^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3f60e3f23f708b79a1027b4eae6dcf547531f44;p=thirdparty%2Fkea.git [4249] Fixed naming issue in dhcp_test_lib.sh.in src/lib/testutils/dhcp_test_lib.sh.in renamed kill_processes to kill_processes_by_name replaced call to kill_pids with call to kill_processes_by_name --- diff --git a/src/lib/testutils/dhcp_test_lib.sh.in b/src/lib/testutils/dhcp_test_lib.sh.in index b9df2eb221..3eadbc2de2 100644 --- a/src/lib/testutils/dhcp_test_lib.sh.in +++ b/src/lib/testutils/dhcp_test_lib.sh.in @@ -221,7 +221,7 @@ get_pid() { # It uses 'pgrep' to obtain pids of those processes. # This function should be used when identifying process by # the value in its PID file is not relevant. -kill_processes() { +kill_processes_by_name() { local proc_name=${1} # Process name if [ -z ${proc_name} ]; then test_lib_error "get_pids requires process name" @@ -303,7 +303,7 @@ cleanup() { # file doesn't exist for it. As a result, the process will not # be killed. This is not a problem for other processes because # tests control launching them and monitor when they are shut down. - kill_pids "kea-lfc" + kill_processes_by_name "kea-lfc" # Remove temporary files. rm -rf ${LOG_FILE}